(Reuters) - Three New Jersey police officers were shot early on Friday at their police station, and one was in surgery for his wounds, a hospital official said.

The suspected gunman, who had been brought to the Gloucester Township Police station for a domestic incident, was killed in the exchange of gunfire, local TV reported, citing police officials. Gloucester is in central New Jersey about 16 miles outside of Philadelphia.

"A violent struggle occurred while the suspect was being processed," Gloucester Deputy Police Chief David Harkins said, according to Philadelphia TV station NBC10. The man was able to grab a gun and then opened fire.

The gunman was killed by police during the confrontation, Gloucester Police Chief W. Harry Earle said, according to the NBC10 report.

Gloucester Township Police declined to comment on the incident or to confirm the NBC10 report. An officer answering the phone said a press statement would be issued later in the day and a press conference was scheduled for Friday afternoon.