Pakistan denied any part in the incident, but India lodged an official protest with Islamabad for what was the deadliest loss of life for the Indian Army since a 2003 truce agreement.
A Pakistani military source told AFP that the directors general of military operations on both sides discussed the ceasefire violation on the Line of Control (LoC). "A special hotline contact was established this morning between DGMOs of the Pakistan and India armies to discuss the situation arising due to recent Indian allegations on the LoC," the source said.
Pakistan "strongly and categorically rejected" the allegations and lodged a "strong protest" over accusations that Indian fire seriously injured two Pakistani soldiers, the source added.
The Pakistani commander reiterated his side's commitment to the 10-year ceasefire agreement between the two nuclear powers.
Officials in Jammu and Kashmir said the attack took place late Monday at a military outpost in Poonch, around 200 kilometres (124 miles) south of the state capital Srinagar.
Hopes of progress in the beleaguered peace process have risen in recent weeks but Omar Abdullah, Jammu and Kashmir's chief minister, said the attack would undermine efforts at rapprochement.
Get Breaking news, live coverage, and Latest News from India and around the world on NDTV.com. Catch all the Live TV action on NDTV 24x7 and NDTV India. Like us on Facebook or follow us on Twitter and Instagram for latest news and live news updates.