ROCK HILL, S.C. (AP) — A failed traffic stop in South Carolina ended with the driver and a state trooper shooting each other.

South Carolina Department of Public Safety Director Leroy Smith says Trooper Paul Wise attempted to pull over a car late Sunday in York County for a suspected seat belt violation, but the driver fled. Smith tells news outlets the ensuing pursuit ended with the driver fleeing his car on foot and shooting Wise, who was wearing body armor.

Smith says the trooper then shot and arrested the driver. The men were hospitalized with injuries not considered to be life threatening, and the trooper was released Monday.

Authorities said the driver, 27-year-old Willie Bernard Wright of Gaffney, would face charges once released from the hospital.

The South Carolina Law Enforcement Division is investigating.