According to preliminary reports, the attackers are suspected to be Pakistani army snipers who fired from across the border in another instance of ceasefire violation.
He said further details of the incident were awaited.
The tragic incident comes at a time just hours after 7 Amarnath yatris were killed and around 19 were injured after a group of terrorists opened fire at the bus carrying Amarnath pilgrims in Jammu and Kashmir's Anantnag district.
Two soldiers, members of an advance party of the Army, were killed in an attack near the Line of Control in Jammu and Kashmir's Keran sector on Wednesday afternoon.
"The ceasefire violation was retaliated to strongly and befittingly", he said. The soldiers were on area domination patrol between two army posts.
On 22 June, Pakistani special forces sneaked 600 metres across the LoC into the Poonch Sector and killed two Indian jawans while losing one Border Action Team (BAT) member in retaliatory action, according to PTI. India's deputy high commissioner J.P. Singh was called to the Islamabad foreign office for the second day running on July 9 over alleged ceasefire violations by Indian troops.