This is an archived article and the information in the article may be outdated. Please look at the time stamp on the story to see when it was last updated.

FLATBUSH, Brooklyn — An off-duty NYPD officer in Brooklyn fired his weapon after a group of men started beating him up following a dispute Wednesday night, according to police.

Authorities said the off-duty officer got out of his personal car just before 10 p.m. near the corner of Rogers Avenue and Martense Street, in the Flatbush area.

He got into a dispute with a group of six to eight men, which turned physical when the group allegedly started to beat the man up, police said.

The Daily News reported the dispute came when the off-duty officer confronted the group as they were setting off illegal fireworks. The NYPD could not confirm this information.

During the attack, the officer took out his gun and fired a single shot, but nobody was struck or injured by the bullet, police said.

The off-duty cop also fell and cut his hand during the altercation, officials said.

The victim was taken to an area hospital for treatment but was not seriously injured, according to police.

No arrests were made in the attack.

Submit tips to police by calling Crime Stoppers at 1-800-577-TIPS (8477), visiting crimestoppers.nypdonline.org, downloading the NYPD Crime Stoppers mobile app, or texting 274637 (CRIMES) then entering TIP577. Spanish-speaking callers are asked to dial 1-888-57-PISTA (74782).