The ultras opened fire on the houses of ASI Dilbar Ahmad and Constable Reyaz Ahmad at Keegam in Shopian, a police official said.
He said the militants broke some window panes of the house and vehicle of the cops before fleeing.
He said no one was injured in the incident.