If the jury is discharged because the court has not jurisdiction of the offense charged in the indictment or information, and it appears that it was committed out of the jurisdiction of this state, the court may order the defendant to be discharged, or to be detained for a reasonable time specified in the order, until a communication can be sent by the district attorney to the chief executive officer of the state, territory or district where the offense was committed.
Okla. Stat. tit. 22, § 845