A 40-year-old man from Fair Lawn accidentally shot himself and a friend with his semiautomatic handgun while he was showing it off in his home Saturday night, police said.

The .380 caliber semiautomatic handgun discharged one round in his Rosewood Street residence. The bullet struck the owner in his left hand, and his friend in the right hip, Fair Lawn police said.

The man and his friend, a 49-year-old man from Paterson, were taken to St. Joseph's Regional Medical Center by an acquaintance. Neither of the men were identified.

While at the hospital, an off-duty Paterson police officer, who was working security, contacted Fair Lawn police about the gunshot victims.

Police did not say if the gun was legally owned and registered. No one has been charged in relation to the shooting.

Neither man was critically injured, and both were being treated for their injuries Sunday morning, police said.

Paige Gross may be reached at pgross@njadvancemedia.com. Follow her on Twitter @By_paigegross.