ROBINSON TOWNSHIP (KDKA) — Officials had to open fire at a suspect during an undercover child predator investigation after the individual almost hit officials with his car.

On Thursday, agents with the Attorney General’s Office said they were posing as a 14-year-old boy online when they were contacted by Justin Torres.

READ MORE: Man Gets Up To 60 Years In Deadly Hill District Shooting

They say he tried to set up a meeting for sex at the Holiday Inn along Campbell’s Run Road.

When he arrived, undercover agents confronted Torres, who was sitting in his car.

(Photo Credit: KDKA)

While trying to get away, police say Torres almost hit officers, including driving directly towards them.

READ MORE: U.S. Customs And Border Protection Has Seized More Than 6,000 Counterfeit COVID-19 Vaccination Cards Across The Country

That’s when the shots were fired at his car.

(Photo Credit: Attorney General’s Office)

Torres was eventually pulled over along Route 22-30 and taken into custody.

Torres is facing numerous charges, including aggravated assault and unlawful contact with a minor.

MORE NEWS: Pittsburgh Man Gets 15 To 30 Years In 2015 Murder

No one was hurt.