Discuss as:

Confronted about child porn, man shoots two deputies in San Diego County

Updated at 9:19 p.m. ET: A Lakeside, Calif. man confronted about alleged child porn opened fire inside his apartment, shooting and injuring two deputies before shooting himself, according to the man’s girlfriend.

The girlfriend told NBC San Diego that she was getting her two daughters ready for school when she found pornographic pictures of her boyfriend and her two daughters engaged in sex acts on his cell phone. The suspect has been identified as Daniel Robert Witczak, 30. 

The woman headed to the sheriff’s office, showed them the photos and called the suspect on a deputy-tapped phone line to confront him.

Her boyfriend told her that he planned to sell the photos for $50,000 to a child porn site.

The couple had been dating a year, the woman said, who added that her boyfriend was unemployed. She said he planned to support them with the money he would have made with the photos.

Read full coverage at NBCSanDiego.com

Deputies, including a child abuse detective, entered the apartment complex to confront the suspect while the woman and her daughters waited outside. The woman said that after the deputies stormed the apartment, her boyfriend shot the two deputies with a high-powered rifle and then shot himself.

Both deputies were transported to Sharp Memorial Hospital, KPBS.org reported. Lt. Duncan Fraser of the sheriff's office said at a press conference that both men were in surgery.

One patient arriving to a Sharp Memorial Hospital was shirtless on the first gurney coming out of the Lakeside Fire District paramedics van. That ambulance was followed by another carrying a victim covered by medical cloth.

The suspect was transported to Scripps Mercy Hospital, according to a hospital source. His former employer told NBC News that he had been employed as a mechanic but was fired after a week because he was unreliable.

The shooting occurred at Ashwood and Mapleview streets just south of the Lakeside Rodeo Grounds, said Lt. Mike Munsey of the San Diego County Sheriff's Department.

Resident Jodi Davis, who lives across the street from where the shooting occurred, said she heard between 12 and 18 shots.

“Multiple shots, bang, bang, bang, bang, bang,” Davis said. “I said, 'Oh my gosh -- those are gunshots!'"

She said the police ordered her and her neighbors back into their apartments.

Nearby El Capitan High School went into lockdown; students were dismissed at 1:20 p.m.

NBC San Diego reporters at the scene said officers responded from agencies throughout San Diego County.

More content from NBCNews.com:

Follow US News from NBCNews.com on Twitter and Facebook