Three goons jumped an off-duty cop in a Bronx bodega Saturday morning, and one managed to briefly escape with the officer’s gun, authorities said.

The cop was headed to work at the 44th Precinct station house in Morris Heights at 6 a.m. when he stepped into the deli on Grand Concourse near East 167th Street and was surrounded by three assailants, police said.

The thugs assaulted the victim, who identified himself as a cop, and knocked his gun to the floor during the fracas, police said.

The youngest of the hoods, an unidentified 15-year-old, picked up the weapon and dashed out of the store — but was arrested later, still in possession of the gun, police said.

The other two were quickly collared by on-duty officers. Tyrone Selby, 32, and Adrian Medina, 17, were hit with charges including robbery.