Policeman takes his life with own gun