Whenever any portion of the militia shall be called into the active service of the state to execute the law, suppress a riot or insurrection, repel invasion, protect lives and property, or in aid and relief of citizens in disaster, the law, including the Uniform Code of Military Justice, the Acts of Congress, and rules and regulations of the Department of Defense and the regulations prescribed for the United States Armed Forces shall be enforced and regarded as a part of this chapter until the forces shall be duly relieved from such duty. As to offenses committed when such laws are so in force, courts-martial shall possess, in addition to the jurisdiction and power of sentence and punishment vested in them by this chapter, all additional jurisdiction and power of sentence and punishment exercised by like courts under such laws, including the Uniform Code of Military Justice and Acts of Congress and rules and regulations of the Department of Defense and the regulations or laws governing the United States Armed Forces or the customs and usages thereof; but no punishment under such rules and regulations authorizing the taking of life shall in any case be inflicted except in time of war, invasion, or insurrection, declared by a proclamation of the Governor to exist, and then only after approval by the Governor of the sentence inflicting such punishment. Imprisonment other than in a guardhouse shall be executed in county or city jails or other prisons designated by the Governor for that purpose.