No moviegoers or officers were hurt in the shooting inside Reading Cinemas Carmel Mountain in northern San Diego, officer David Stafford said.

The suspect, whose name was not immediately released, was taken to a hospital with several gunshot wounds and was expected to survive, Capt. Terry McManus told U-T San Diego. He became the target of an intense police search after witnesses reported seeing him confront his 19-year-old girlfriend at a parking lot across the street from a shopping plaza where the Cineplex is located.

Witnesses tried to intervene, but he threatened them with a gun and ran to the shopping plaza.

The owner of a business next to the Cineplex said police shut down the shopping center's parking lot and stopped every car to look for the man. Officers with dogs checked each store, while a police helicopter hovered above.

"There were 20 police cars blocking the entrance, then the fire truck and the ambulance rushed in," Steve Krongard, the owner of the Nickel City arcade, said. "Then we saw seven cops with what looked like rifles, then paramedics went into the theater."

McManus said police turned their attention to the Cineplex when two women told officers the suspect they were looking for matched the description of someone they saw inside the Cineplex. Police searched theater by theater and evacuated moviegoers until two officers spotted him in a theater with about 15 others.

McManus told the paper that the man initially complied with officers' order to put his hands up, but then he put them back in his lap and brandished a handgun. He said one of the officers opened fire.

The officers thought their lives were threatened, he said, "and more importantly, they thought the lives of others were in jeopardy."

The theater's manager told Krongard the shooting occurred during a screening of "Les Miserables."

A moviegoer told KGTV the lights suddenly went on during the film and two officers came into the theater with their guns. Another witness told the station that everyone got on the floor and started heading for the exit doors.

McManus said the gunman never made any threats to others in the theater. He said the man had left a suicide note at his Escondido home before going to his girlfriend's workplace to confront her.

It was the second shooting at a San Diego County movie theater in as many days.

A concession worker suffered an arm injury when a shot fired outside a San Marcos movie theater went through the lobby window and struck her, sheriff's officials said.

The shooting occurred during a fight in the parking lot at Edwards San Marcos Stadium 18 and triggered a large police response because authorities were initially not sure whether there was a shooter inside the Cineplex.