A Prince George’s County police officer working an off-duty security job at a Langley Park nightclub was shot in the leg early Saturday morning by a young man who had just been thrown out of the popular late-night hangout, authorities said.

The young man and two women were involved in a dispute inside the Galaxy club in the 2000 block of University Boulevard, “possibly over a cell phone,” said Julie Parker, a Prince George’s County police spokeswoman.

Told to leave, all three got into a white Honda and started driving slowly through the club’s parking lot, Parker said.

Parker said the man, who was driving, suddenly opened fire through the passenger’s side. At least one of the shots struck a Prince George’s County police officer working off-duty at the club in the leg, Parker said.

Other officers on the scene returned fire, Parker said, then chased the Honda about a mile down University Boulevard. Eventually, she said, they took both women and the man into custody and recovered the weapon believed to have been used in the shooting.

The man, Parker said, appeared to have been targeting the officer or those who threw him out of the club.

“I don’t know why else they would be shooting, as they left the club, in that direction,” Parker said.

The officer, who worked in patrol in District Five, was hospitalized and required surgery but was expected to survive her injuries, Parker said. None of the suspects were struck by the return gunfire, though their car was, Parker said. She said that on Saturday morning, they were being interviewed by detectives.

Parker declined to immediately identify the officer or those taken into custody.

The incident marks the fifth time in just more than 18 months that a Prince George’s County police officer has been shot or shot at, Parker said. She said the figure was a “unprecedented statistic for our department.”