Six Philadelphia police officers were shot and wounded on Wednesday in a shootout during a drug raid on a home, Reuters reported.

A SWAT team later rescued two police officers who were trapped inside the home with the shooter who is still armed and remains inside the home, police said.

Over four hours into the standoff, the Philadelphia Police Department (PPD) said all of the wounded officers were in stable condition with non-life-threatening injuries, according to Reuters.

Police were serving a drugs warrant inside a north Philadelphia home at around 4:30 p.m. when the male shooter opened fire on officers.

“Many of them had to escape through windows and doors to escape from a barrage of bullets,” Philadelphia Police Commissioner Richard Ross told a news conference.

The shooter continued to fire on a SWAT truck parked outside the residence in the Nicetown neighborhood, with rounds hitting a building across the street, as officers tried to negotiate his surrender, Ross added.

“The suspect remains barricaded as PPD Officers continue to attempt to communicate with him,” Police spokesman Eric Gripp tweeted at around 9 p.m.