Police say it all started with an argument between the suspect, identified as 19-year-old Justin Kennedy, and a woman just before midnight in Lid's Cafe Society at 23rd and Tasker.
The argument spilled into the street, where investigators say Kennedy threatened to shoot the woman, while reaching into his waist band, implying that he had a gun.
The confrontation continued for about a block, to 23rd and Cross, where officers say another man stepped in to help the woman.
Police say Kennedy then threatened that man.
That's when investigators say the man who came to the rescue flagged down a police officer who was parked nearby in a patrol car.
Investigators say by this time the Kennedy had pulled a gun.
When the officer arrived he told Kennedy to drop the gun.
That's when investigators say Kennedy turned abruptly toward the officer. Police say the officer then opened fire, shooting the Kennedy, who died at the hospital.
Officers recovered a gun at the scene.
As with all police shootings, the department's Internal Affairs unit is investigating.
You can get the latest crime statistics from the Philadelphia Police by CLICKING HERE for the force's crime data mapping site.