If a criminal prosecution has been instituted against such person under the laws of this state and is still pending, the Governor may either surrender the person on demand of the executive authority of another state, or hold the person until the person has been tried and discharged or convicted and punished in this state.
SDCL 23-24-21