The law enforcement officer or person executing the judge's warrant of arrest, or the agent of the demanding tribe to whom the prisoner may have been delivered may, if necessary, confine the prisoner in the jail of any county or first or second class municipality through which the prisoner may pass. The person in charge of the jail shall receive and safely keep the prisoner until the law enforcement officer or person having charge of the prisoner is ready to proceed on the route. The governmental unit which employs the law enforcement officer or person having custody of the prisoner shall be charged with the expense of keeping the prisoner, unless reimbursement is otherwise provided pursuant to an agreement between the tribe and governmental unit.
SDCL 23-24B-8