The gunfire erupted at the Gloucester Township police headquarters around 5:30 a.m. ET, according to Deputy Chief David Harkins, the (Cherry Hill, N.J.) Courier-Post reported.

Harkins said the unidentified suspect got his hands on a firearm and shot at the three officers.

"The officers returned fire and the suspect is deceased at this time inside the police station," he said.

One officer was hit and is in stable condition. CBSPhilly reported that the officer was shot just below his bulletproof vest and underwent surgery.

WPVI-TV reported that two other officers were treated for bullet-graze wounds.

CBSPhilly also reported that the suspect had been taken into custody for a domestic violence-related incident.

"Everybody was running up the side here," Sharon Lehner, a nurse who lives next door to the station, told the Courier-Post. "I saw a paramedic unit and an ambulance come down. I saw a lot of quick action in the ambulance with officers getting into the ambulance and then leaving."

Gloucester Township, which has a population of about 64,000 people, is located about 15 miles southeast of Philadelphia.