A Virginia police officer was suspended after allegedly turning over a suspected undocumented immigrant to federal authorities following a traffic accident last month.

The Fairfax County Police Department didn't identify the officer in a statement released Tuesday but said the incident occurred on Sept. 21 when an officer was dispatched to a car accident.

The officer discovered one of the drivers didn't have a Virginia driver's license and ran a check with the state Department of Motor Vehicles, police said. The check revealed the driver had a violation for failing to appear for a deportation hearing.

The officer verified the warrant and alerted officials with Immigration and Customs Enforcement (ICE).

NYC THREATENS UP TO $250G IN FINES FOR USING TERMS LIKE 'ILLEGAL ALIEN,' THREATENING TO CALL ICE

An ICE agent was close by and arrived at the scene. The officer cited the driver for not having a driver's license and turned them over to the federal agent.

The Fairfax County Police Department enacted a 2007 policy that prohibits officers from confirming a person's immigration status and detaining them solely based on civil violations of immigration law.

“This is an unfortunate issue where the officer was confused,” Police Chief Edwin Roessler Jr. said. “We have trained on this issue a lot. This is the first time we’ve had a lapse in judgment, and the officer is being punished.”

The driver was released from federal custody after three hours and ordered to wear an ankle monitor. Roessler apologized for the incident and ordered an internal investigation upon learning of it.

"Our county is one of the most diverse counties in the nation and no one should have the perception that FCPD is acting as a civil immigration agent for ICE," he said.

CLICK HERE FOR THE ALL-NEW FOXBUSINESS.COM

The officer involved has been on the job for a few years, Roessler told The Washington Post. He added that the officer did not willfully violate the department's policy with respect to cooperating with immigration officials.

He said the officer will undergo remedial training.