Six Philadelphia police officers were shot in a rapidly escalating standoff on Wednesday afternoon with at least one active shooter at a home about two miles north of Temple University, the authorities said.

The officers were taken to area hospitals with what the police described as non-life-threatening injuries. Additional officers were also being treated for “non-gunshot injuries,” Sgt. Eric Gripp of the Philadelphia Police Department said on Twitter.

SWAT teams converged on a residence in the Nicetown-Tioga section of the city, and the shooting began around 4:30 p.m. It prompted a lockdown of Temple University’s Health Sciences Center Campus.

Sergeant Gripp said the situation was “active and ongoing.”

Four or five gunshots could be heard around 5:45 p.m. A police officer at the perimeter of the scene was reaching toward his gun holster shortly after the shots were fired. Another burst of shots rang out shortly after 6 p.m.

Aerial camera footage showed a large police presence at the scene. But the police urged media helicopters to pull back from the area, saying that they were hindering operations.

“Lockdown is in effect for Health Sciences Center Campus,” Temple University said on Twitter. “Seek shelter. Secure doors. Be silent. Be still. Police are responding.”

The shooting came two days after a gun battle in Southern California left one California Highway Patrol officer dead and two others injured.

Michael Borenstein, a dean of the Temple University School of Pharmacy said that he had received a university alert on his phone telling him that the Health Sciences Center Campus was on lockdown. “We’re watching for multiple shooters. People are sitting at their desk doing work and others are following along on the internet.”

Jon Hurdle and Heather Murphy contributed reporting.