They said two security force personnel -- an assistant sub-inspector of Police and a CRPF jawan -- were injured in the operation that was launched on Saturday.
Security forces had cordoned off the Chanakhan locality in Sopore, 52 kms from in Srinagar, Saturday following information about presence of militants in the area.
The militants opened fire on the security forces, triggering the encounter.
Senior police officials had rushed to the spot as a top commander of Lashkar-e-Toiba was believed to be trapped in the house.