A plain-clothes policeman accidentally fired a shot through a closed window as he cleaned a weapon in Mongkok police station.