The magistrate shall annex the affidavits, the search warrant and return, and the inventory, and if he does not have jurisdiction to inquire into the offense in respect to which the warrant was issued, he shall at once file the warrant, and return the affidavits and inventory to the court having jurisdiction to inquire into the offense.
A.R.S. § 13-3923