A DEA agent and a State Trooper assigned to the DEA’s Drug Enforcement Task Force opened fire on a suspect during a car-stop on the West Side Highway on Thursday — when he tried to run the agents over, authorities and law enforcement sources said.

The agents fired two shots at the suspect, 31, around noon at 12th Avenue and West 46th Street – nearby the Intrepid Sea, Air and Space Museum – during the failed attempt to stop the driver as part of a probe into a large-scale heroin mill in The Bronx, officials said.

The suspect, who was not struck, tried to hit the agents with his Jeep Cherokee before making a U-turn and smashing into other cars in an attempt to flee, according to authorities.

“As agents attempted the car stop, lives of the agents and passersby were threatened and shots were fired,” DEA spokeswoman Erin Mulvey said. “[The] pursuit continued.”

At a press conference at the scene, DEA Associate Special Agent in Charge Timothy Foley said: “The defendant was trying to evade the custody of the task force member. During that time, he created a risk to the safety of others.”

The suspect, who was in the car alone, made it all the way to 262nd Street and Broadway near the Westchester County line, where he was collared without incident, according to authorities.

“Further arrests are pending,” Mulvey said.

Law enforcement sources said three other people were busted as a result of the long-term investigation into the heroin operation.

Agents with the task force had initially tailed the suspect in The Bronx and followed him down the West Side Highway.

“It was a task force investigation into a large-scale heroin operation in the Bronx,” Mulvey added.

The incident prompted the temporary closure of the West Side Highway between West 42nd Street and West 56th Street.

Officials said no one was injured during the incident.

A witness who was working in a parking lot at the corner of West 46th Street said: “I heard cars smashing, crunching….And then I heard ‘bang, bang,’…It was at least two shots.”

“It was scary…..Then there was the commotion and the people panicking,” the man said.