A Gwinnett County sheriff's deputy was arrested after getting into an accident in a county vehicle Thursday in Walton County and was charged with driving under the influence.

A Georgia State Patrol officer arrested Douglas Mattox after a three-vehicle crash at 12:15 p.m. on Georgia Highway 10 in Loganville. Mattox, 50, of Watkinsville was booked Thursday on charges of DUI and following too closely. He was released on $2,182 bond the same day.

According to Gwinnett County sheriff's spokesman Stacey Bourbonnais, Mattox had been employed as a deputy since 2008. He resigned Friday morning.

The Sheriff's Department asked that Mattox's booking photo not be published because he was involved with undercover investigations inside the jail and it could compromise his safety.

Mattox was driving a 2006 Ford F150 pick-up truck belonging to the Gwinnett County Sheriff's Department when he rear-ended a 2004 Toyota Highlander, according to Georgia State Patrol spokesman Gordy Wright. The Highlander then slammed into the back of a 2005 Ford Focus.

The driver of the Toyota complained of injury but was not transported to the hospital, Wright said.

The investigating trooper suspected Mattox was under the influence of prescription medication and a blood sample was drawn for testing. The blood test is pending.