El Paso County Sheriff Richard Wiles says a Sheriff’s detention officer was attacked by an inmate Thursday while returning from a medical appointment.