NEW YORK — A New York State trooper was hit by a vehicle during an officer-involved shooting on the RFK Bridge Sunday afternoon, officials said.

The trooper stopped to assist an MTA officer with a traffic stop and, during the stop, the driver hit the gas, striking a second vehicle which then hit the trooper.

The trooper suffered a minor leg injury, was taken to a hospital and released, according to a New York State Police spokesperson.

The shooting happened just before 1 p.m., according to authorities.

Officials said the MTA bridges and tunnels officer was also injured.

Police arrested the 21-year-old driver of a stolen vehicle in connection with the incident, transit sources said. He was charged with unauthorized use of a motor vehicle, reckless endangerment, vehicular assault, fleeing, obstruction of governmental administration, leaving the scene of an accident with injuries, and unlicensed operation of a motor vehicle.

The 17-year-old passenger in the vehicle was also arrested on charges of criminal possession of a weapon, possession of an imitation firearm, obstruction of governmental administration, and unauthorized use of a motor vehicle, sources said.

All Bronx-bound lanes of the bridge were temporarily closed, according to the city Department of Emergency Management. Several people on Twitter reported being stuck in standstill traffic.

Motorists were initially advised to avoid the bridge and use an alternate route.

All lanes on the RFK Bridge reopened late Sunday night around 11:47 p.m., according to the MTA.

The incident happened on one of the busiest travel days of the year, as many try to get home on the final day of the Thanksgiving holiday weekend.