The attackers, travelling on a motorcycle, opened fire on a police car in Khyber Pakhtunkhwa province.