If an arrest is made in this state by an officer of another state in accordance with the provisions of section 13-3832, he shall without unnecessary delay take the person arrested before a magistrate of the county in which the arrest was made, who shall conduct a hearing for the purpose of determining the lawfulness of the arrest. If the magistrate determines that the arrest was lawful he shall commit the person arrested to await for a reasonable time the issuance of an extradition warrant by the governor of this state. If the magistrate determines that the arrest was unlawful he shall discharge the person arrested.
A.R.S. § 13-3833