A jawan was also injured in the exchange of fire late last night.
A group of four militants were seen moving inside Indian territory along LoC in forward belt Kalsia in Poonch district, a Army officer told PTI today.
Army troops challenged them and the militants opened fire on the troops, who retaliated. In the ensuing encounter, two militants were killed and a soldier suffered injuries.
He has been been hospitalised, the officer said, adding bodies have been recovered and a search operation is going on.
On May 3, troops foiled an infiltration bid along LoC in Sawjian belt of Poonch district.
There were inputs that militants were trying to infiltrate into India and the firing from Pakistani side was "probably a ploy", the Army officer said.
"They resort to ceasefire violation by resorting to firing on Indian posts to give cover to infiltrating militants and divert attention of the troops," the officer said.
There has been four ceasefire violations in past fortnight along LoC. On May 5, Pakistani troops violated ceasefire by resorting to firing from automatic weapons on Indian posts along the LoC in Bhimber Gali area of Rajouri district.
On May 3, Pakistani troops indulged in firing from small arms and automatic weapons on Indian posts along the LoC in Mendhar in Poonch district from 2330 hours but there was no loss of life or injury.
On April 28, Pakistani troops resorted to firing from small arms and automatic weapons on Indian posts along the LoC in Bhimber Gali in Rajouri district.
On April 25, Pakistani troops violated the ceasefire by firing with small arms and mortars on Indian posts in Doda battalion areas along the LoC in Poonch district.