The Police added that one civilian also received injury during the encounter and he has been shifted to a hospital in Srinagar where his condition is said to be stable.
The security forces launched a cordon-and-search operation in the Warpora area of Sopore on Thursday, following information about the presence of ultras.
"Two policemen and two civilians lost their lives in a terrorist attack in Sopore. Two other police personnel are injured. Lashkar-e-Taiba is behind this attack," said Kashmir IG