BAYONNE — A 29-year-old city man was accidentally shot in the face inside of an Avenue B residence, authorities said.

Police were called to the residence, on Avenue B near West 51st Street, just before 5 p.m. on Saturday where they found the victim with facial wounds, police said. The incident is still under investigation, but it appears to be accidental in nature.

Authorities said a 30-year-old man was showing the victim his gun when it accidentally fired and struck the victim in the face. The victim was treated at the scene, and was taken to Jersey City Medical Center with non-life-threatening injuries, police said.

The 30-year-old Bayonne resident remained on the scene and was cooperative with responding officers, police said. The firearm, a Springfield XD 9mm pistol, was legally registered under his name.

He was charged with aggravated assault, authorities said.