Jefferson County sheriff's officials say an inmate has been shot by a deputy after he tried to escape while being treated at a medical facility.