"Intrinsically related to the official duties of the petitioner as a police officer and to prosecute him for the commission of any offence in such