India on Monday said it reserved the right to respond "appropriately" to Pakistani firing along the Line of Control (LoC) after a five-year-old girl and a soldier were killed in Jammu and Kashmir in heavy shelling by Pakistani forces.

The latest in a series of Pakistani border aggression came even as two senior military commanders of the two countries held talks over repeated exchanges of fire along the LoC which divides Jammu and Kashmir between them.

The deceased girl, who was hit by a Pakistani shell, was identified as Saida of Balakote in Poonch district. The soldier was killed in Rajouri district's Tarkundi area.

Defence Ministry spokesman Lt. Col. Manish Mehta said the firing along the LoC was still going on after Pakistani troops resorted to unprovoked shelling at Bhimber Gali, Mendhar and Balakote sectors of Poonch and Rajouri districts.

The Indian Army retaliated "strongly and effectively", Mehta said.

As the firing was on, the Directors General of Military Operation (DGMO) of India and Pakistan spoke over hotlines to de escalate the border tension. The DGMOs usually speak on Tuesdays but Monday's was an unscheduled conversation on Pakistan's request.

The Indian DGMO, Lt General AK Bhatt, pointed out that "all the ceasefire violations" were being initiated by the Pakistan Army, according to an Indian Army statement. 

The DGMO also noted that firing by Indian troops was initiated against armed intruders trying to sneak into India "from close proximity of Pakistan posts".

"The trend of infiltration along the LoC continued with active support of Pakistan forward posts impacting peace and tranquility along the LoC and also the internal security situation." 

He said continued attempts of sniping and targeting of Indian troops were "undertaken through cross border actions supported by Pakistani Army troops.

"The Indian Army reserves the right to retaliate appropriately to any incident of violation of ceasefire but is sincere in its effort to maintain peace provided there was reciprocity," the statement added.

During the talks, the Pakistan DGMO, Maj Gen Sahir Shamshad Mirza, raised the issues of targeting of Pakistani troops resulting in the death of four soldiers and a civilian in Athmuqam sector of Pakistan-administered Kashmir.

Pakistan's The News daily quoting unnamed sources said the Pakistan DGMO "strongly protested" against the deaths on Sunday.

"The Pakistan Army reserves the right to respond any Indian aggression," the daily said, quoting the sources. 

According to the Inter Services Public Relations (ISPR), Indian troops targeted an Army vehicle that fell into the Neelum river and the four soldiers drowned.

The two armies have repeatedly exchanged heavy fire this summer along the winding LoC that has left many soldiers and civilians dead on both sides.

Two Indian soldiers were killed in Kupwara sector of the Kashmir Valley on July 12.

India and Pakistan had in November 2003 agreed to cease fire along the de facto border but violations have intensified since the 2016 Kashmir unrest and amid souring of ties between the two countries.