Section 521(2) in Bharatiya Nagarik Suraksha Sanhita, 2023
(2)Every Magistrate shall, on receiving a written application for that purpose by the commanding officer of any unit or body of soldiers, sailors or airmen stationed or employed at any such place, use his utmost endeavours to apprehend and secure any person accused of such offence.