NEW YORK (CBSNewYork/AP) — An off-duty Hempstead police officer accidentally shot himself in the leg early Saturday when he opened fire after a group of men tried to rob him in the Bronx, sources tell CBS2.

Sources say a car rear-ended the off-duty officer’s vehicle near the intersection of Sedgewick Avenue and Hall of Fame Terrace in the University Heights section.

Police say that when the officer tried to inspect the damage, the two men in the other car and two men from a third car confronted the officer and assaulted him. At that point, sources say the off-duty officer discharged his weapon.

Police say the officer shot one man in the abdomen and another in the back, then shot himself accidentally.

All three were taken to area hospitals with non-life threatening injuries. The suspects were taken into custody as police searched for the remaining two people involved in the attempted robbery.

Anyone with information in regards to this incident is asked to call the NYPD’s Crime Stoppers Hotline at 1-800-577-TIPS (8477) or for Spanish, 1-888-57-PISTA (74682). The public can also submit their tips by logging onto the Crime stoppers website at WWW.NYPDCRIMESTOPPERS.COM or by texting their tips to 274637 (CRIMES) then enter TIP577.

(© Copyright 2018 CBS Broadcasting Inc. All Rights Reserved. The Associated Press contributed to this report.)