BUFFALO, N.Y. — A New York state trooper fatally shot a driver Saturday during a traffic stop, and authorities said they were looking into what might have precipitated the deadly interaction.

The driver, identified by State Police as James Huber, 38, of North East, Pennsylvania, was shot as he put the vehicle in reverse and tried to flee, briefly dragging a trooper who was reaching into the vehicle as the car began moving.

The car backed into a highway ramp before overturning, said New York State Police Maj. Carla Dirienzo during a news conference.

Huber died at the scene, she said.

Authorities said the vehicle was first spotted driving “erratically” on a highway Saturday morning. Troopers attempted to stop the vehicle, which authorities said was traveling at speeds up to 100 mph (161 kph), but ended their pursuit when the vehicle exited Interstate 90 in Buffalo. The vehicle struck a squad car while exiting.

While troopers were patrolling city streets, State Police said, the vehicle was spotted and pulled over.

Huber began talking with people on the street when troopers approached the vehicle.

“While interacting with the suspect, the trooper reached into the vehicle and the suspect attempted to leave the scene in reverse,” Dirienzo said.

She could not say why the trooper, identified on Monday as Anthony Nigro, a 14-year veteran of the State Police, reached into the vehicle.

“The trooper discharged their division-issued firearm at the suspect,” she said. “The vehicle struck multiple objects and ultimately overturned on a ramp. The suspect died at the scene.”

Dirienzo said the trooper suffered minor injuries and was treated at a hospital.

She said footage from the trooper’s body camera would be released.

As is routine with officer-involved shootings, the state attorney general’s office is investigating the incident.

"This morning one of our Troopers was involved in a deadly shooting of a motorist after a pursuit in Buffalo," Gov. Kathy Hochul said in a statement. "I have directed the New York State Police to fully cooperate with the Attorney General's independent investigation. As we await a transparent and thorough review of the facts, our thoughts are with the victim's family and our Troopers."