Authorities say an inmate shot a deputy and stabbed another in a holding cell at a northern Virginia courthouse.

Fauquier County sheriff's Lt. James Hartman says 30-year-old George Golder Phillips II of Warrenton shot one deputy in the leg, and stabbed the other in the face around 1 p.m. Wednesday.

Phillips is suspected of robbing banks in the area and was taken to the Fauquier County courthouse for a hearing. The courthouse is in Warrenton, about 100 miles north of Richmond.

Deputy County Administrator Catherine Heritage says the deputies were taken to hospitals in stable condition.

Hartman says the inmate took the gun from one of the deputies, but it's not clear what he used to inflict the stab wound.