A suspect was taken into custody on Thursday after a seven-hour armed standoff where six police officers were shot, said Philadelphia authorities.
The gunman barricaded himself inside a house as police urged him to surrender. Police entered the premises five hours into the standoff and the gunman opened fire on the officers.
Local media reported the suspect was in possession of a semi-automatic rifle and several handguns.
The suspect surrendered and was taken into custody, police said.
SWAT teams who entered the house were still securing it after midnight, police spokesman Eric Gripp said. All six wounded officers were released from the hospital.
The SWAT team rescued two police officers and three civilians who were trapped in the house with the suspect, said police.
NBC News identified the suspected gunman as Maurice Hill, 36, a man with an existing history of gun, drugs, and assault convictions.
The incident comes after mass shootings in Texas and Ohio where gunmen operated semi-automatic rifles.