An off-duty officer was shot at multiple times early Wednesday morning when he intervened to stop a beating outside of a West Philadelphia bar, authorities said.

It started when a fight broke out just after 1:30 a.m. outside of a bar called The Barn. According to police, a group of men was beating up a male victim, reports WPVI.

An 18th district off-duty Philadelphia police officer happened to be driving his personal vehicle past the intersection with a woman in the passenger seat. Police said he parked outside the bar and jumped into the fray to help protect the man who was being assaulted.

"It took a lot of guts, got out of his car, approached this crowd that was actually punching and stomping a male outside of the bar, and he intervened and was able to stop the fight," Philadelphia Police Chief Inspector Scott Small said.

That's when, authorities said, one of the men drew a handgun and started firing at the off-duty officer. The off-duty officer got back into his Jeep and drove away.

At least six shots were fired, two hitting the passenger side door where the woman was sitting.

The male victim suffered minor injuries. No one was hit by gunfire and no one was taken to the hospital.

Police are still looking for the shooting suspect, who is believed to be a frequent customer.