Two militants were killed on Thursday in an operation by the security forces in Sopore town in Jammu and Kashmir, police said.

In a quick operation, Jammu and Kashmir police identified the two terrorists who were instrumental in throwing a grenade on its men on Wednesday in Sopore town in which four policemen were injured, a police spokesman said here.

"The two terrorists were eliminated in a joint operation with 22 Rashtriya Rifles, 92, 177 and 179 battalion of the Central Reserve Police Force (CRPF)," the spokesperson added.

In another incident, Indian and Pakistani troops traded heavy fire on Thursday along the Line of Control (LoC) in Jammu and Kashmir, a defence official said.

"Pakistan Army initiated indiscriminate firing and shelling on our positions on the LoC in Rajouri district's Naushera sector and Krishna Ghati sector in Poonch," Defence Ministry spokesman Lieutenant Colonel Manish Mehta said.

They are using small arms, automatics and mortars, he said.

The ongoing firing in Naushera started at 7.20 am, and at 7.40 am in Krishna Ghati.

"Our forces are effectively retaliating," Mehta added.