An occupant of a vehicle taken in a carjacking was shot and wounded in the District on Saturday night when the car was driven into a pursuing officer who was on foot, authorities said.

The pursuit ended in an area north of RFK Stadium when three juveniles were seized, D.C. police said. One appeared to have a leg wound, they said.

The shot was fired when the carjacked vehicle was stalled in traffic on Route 295 in the midst of the pursuit and officers approached on foot. The car then headed toward one, striking him, and an officer fired at least once, said Assistant Police Chief Lamar Greene. The bullet wound did not appear life-threatening and the officer’s injury was minor, Greene said.

Greene said the pursuit began about 7 p.m. when police near New York Avenue NE and Route 295 spotted a car that had been taken earlier in the day in the 500 block of 16th Street NE.

Police followed it from the avenue onto Route 295. After being stalled there, the vehicle drove off, and was finally abandoned in the 500 block of 24th Street NE.

Police said the juveniles were taken into custody in that area after fleeing the vehicle.