Deputy shoots hospital patient in self-defense