If any prisoner threatens personal injury to any officer, keeper or guard of the state penitentiary or other place maintained by the state board of correction, or acts in such manner as may reasonably lead the officer, keeper or guard to believe his life or the life of any prisoner is in danger, or which leads the officer, keeper or guard, to believe the prisoner is attempting escape, then such officer, keeper or guard, may proceed forthwith to use any weapon he may have to enforce obedience, and if in so doing any prisoner shall be necessarily wounded or killed, the officer, keeper or guard is justified and shall be held guiltless. For purposes of this section, a facility operated by a private prison contractor and housing prisoners pursuant to a contract between the contractor and the state board of correction, as set forth in section 20-241A, Idaho Code, shall be deemed to be maintained by or under the control of the state board of correction.
Idaho Code § 20-111