A Hillsborough County inmate attacked a detention deputy and attempted to strangle him Tuesday afternoon.