It happened around 6:30 p.m. in the 3000 block N. Water Street in the city's Kensington section.
Police say that the incident started when a man, identified as Carlos Rodriguez, 40, produced a handgun after a large fight broke out.
Unknown to those involved in the fight, there were two undercover police officers nearby.
#BREAKING: PHILADELHIA Police involved shooting, Clearfield & Water.— Dann Cuellar (@DannCuellar) July 22, 2021
Officers fire shots at suspect who investigators say began firing shots into a crowd at a large fight. Developing. @6abc pic.twitter.com/NrYi4Sblzd
"There was a large fight on the highway, and the fight was so chaotic they were bumping into the officers' car," said Sergeant Eric Gripp with the Philadelphia Police Department.
The two plainclothes officers responded and police say the suspect started firing multiple shots into the crowd. Two of the shots were in the direction of the officers, said Gripp.
That's when the plainclothes officers then discharged their weapons, firing at least six shots.
The officers have been identified as Officer Suarez, 27, and Officer Lesesane, 23. Both are our-year veteran of the Philadelphia Police Department detailed to the Narcotics Field Unit.
Police say the suspect was struck in the shoulder and abdomen. Rodriguez was rushed to Temple University Hospital where he later died.
The suspect's weapon was recovered from the sidewalk next to his body, police said.
The officers were not injured.
SEE ALSO: Philadelphia officials call for stronger action to combat rise in gun violence
"It's just completely and totally out of control. I mean we hear this all over the city: people are outside just trying to enjoy a nice evening. Fights happen, we're never gonna be able to avoid that. But when somebody produces a handgun, these are the things that can happen," said Gripp.
Chopper 6 was overhead after the shooting as police officers cordoned off a large portion of the intersection to gather evidence. Police say there are a number of surveillance cameras nearby that may have captured the incident.
Authorities say a 52-year-old woman at the scene was also injured in the incident, but police confirmed she was not shot.