Policeman injured as militants open fire