Police are looking for the person who fired at an off-duty police officer when he got out of his car to stop an assault on a man outside a West Philadelphia bar, authorities said.

The incident took place about 1:30 a.m. Wednesday outside the Barn, at 4901 Catharine St. in Cedar Park. Police said the off-duty officer, with five years on the force, was driving by when he saw a man being assaulted.

While he was assisting the man, gunfire rang out, and the officer got back into his car and drove down the street before calling 911, police said. Two bullets struck the car, but the officer and a passenger in the vehicle escaped harm.

It was not immediately clear if the officer, whose name was not released, identified himself as a police officer when he intervened. Police said the officer did not draw his weapon.

The motive behind the assault was not immediately known but police said the victim was not seriously injured. Investigators are looking at surveillance videos in an effort to find the shooter.

The shooting followed a violent night in the city during which one person was killed and five others wounded in a spate of shootings.

On Friday, police released video of the suspect.