UPDATE: Suspect surrendered to police shortly after 12 a.m. Thursday. The suspect’s attorney has identified the alleged gunman as 36-year-old Maurice Hill.

PHILADELPHIA (CBS) — While Philadelphia police officers were dealing with a gunman who shot six of their own during a standoff at a home in the Nicetown-Tioga section, cops also had to deal with being taunted by some bystanders. CBS3’s Alexandria Hoff reports a crowd of people laughed and yelled at officers in the midst of gunfire during a standoff on Wednesday.

I mentioned this at 10 and since I was harassed during that live shot, I’ll mention it here too. A major moment of disappointment this evening was watching a crowd of people taunt police officers, laughing and yelling at them in the midst of the gunfire. #PhiladelphiaShooting — Alexandria Hoff (@AlexandriaHoff) August 15, 2019

I should add – 98% of people here on scene were respectful and concerned. That moment was just such a startling thing to see in the middle of something so chaotic. — Alexandria Hoff (@AlexandriaHoff) August 15, 2019

Police say officers were serving a narcotics warrant on the 3700 block of North 15th Street around 4:30 p.m. when the suspect opened fire. As police exchanged gunfire, officers escaped through windows and doors.

PHOTOS: Chaotic Scene Unfolds As 6 Philadelphia Police Officers Shot During Gun Battle In Nicetown-Tioga

Six officers were shot and transported to local hospitals. The officers have since been released.

From 4:30 p.m. until 8 p.m., gunfire did not cease for more than 40 minutes at a time. For some, the near constant sound of shots felt like nothing more than a reality of where they live, and for others it brought back memories of a war zone.

“It’s unsafe, but this is the hood. This is what we live with everyday,” one woman said.

“When they started dumping with the firepower and stuff like that, they did it in front of the day care, the babies were out and everything, that’s crazy. I’m a discharged veteran. I thought I was in a DMZ zone. It’s triggering PTSD, all types of things, all of this needs to be resolved. It’s senseless, seriously senseless,” another woman said.

WATCH: CBS3 Cameras Capture Volleys Of Gunfire Erupting After 6 Philly Police Officers Shot In Nicetown-Tioga

Sources tell CBS3 that the scene was sheer chaos as officers were taking fire. Video from Chopper 3 showed officers with guns drawn at the scene.

Sources tell CBS3 the suspect was live-streaming some of the shootout while he barricaded himself inside the home.

Police say the gunman surrendered and was taken into custody shortly after midnight.

CBS3’s Alexandria Hoff contributed to this report.