(2) Every Magistrate shall, on receiving a written application for that purpose by the commanding officer of any body of soldiers, sailors or airman stationed or employed at any such place, use his utmost endeavours to apprehend and secure any person accused of such offence.