An inmate escaped from an Idaho hospital with help from an accomplice who opened fire on the correction officers transporting the man, investigators said.