Sheriff's Office says deputy never lost control of weapon, prevented inmate from assaulting hospital staff