It happened at the Gloucester Township police station in Camden County.
Police say gunfire erupted inside the station at about 5:45 a.m. Friday.
As the man was being processed on the complaint, he grabbed a gun and began firing. Three officers were hit before the suspect was shot and killed.
Deputy Police Chief David Harkins says one officer suffered a gunshot wound to the abdomen and was undergoing surgery. Two other officers suffered minor injuries.