According to reports, the deceased major has been identified as Prafool Kumar of 120 Infantry Brigade.
Joshi said Army retaliated strongly and effectively to the ceasefire violation by Pakistani troops.
Indian Army's Udhampur based defence Spokesman Col NN Joshi told news agency GNS that Pakistan Rangers in "violation of ceasefire" opened fire upon the army posts near Keri in Nowshera sector along the LoC.
Vowing to avenge the killings, the Indian troops swung into action to silence the Pakistani guns. Two other personnel also sustained injuries and are under medical treatment.
Hailing from Bhandara in Maharashtra, Major Moharkar Prafulla Ambadas, 32, is survived by wife Avoli Moharkar. Defense sources said that four army personnel were martyred in firing without provocation. Lance Naik Gurmail Singh aged 34 years, belonged to District Amritsar, Punjab and is survived by his wife Smt kuljit Kaur and a daughter.
Sources said an injured army man later succumbed to injuries in the hospital, taking the death toll to four. Sepoy Pargat Singh, 30, belonged to Karnal district in Haryana and is survived by his wife Ramanpreet Kaur and a son.
Kashmir has been the center of a deadly tug-of-war between India and neighboring Pakistan since the end of British colonial rule in 1947.
Was Meghan Markle trolled by royal family member wearing racist jewelry?
Markle, 36, has been open about her cultural heritage, telling the world that she is "bi-racial". However, new reports state that a certain royal may have left a bad impression with Markle.
At least a dozen people including civilians and soldiers have been killed in almost 300 incidents of ceasefire violations along the border in 2017 so far.
Last year, there were 449 incidents of ceasefire violations in which 13 civilians and 13 security personnel were killed and 83 civilians and 99 security personnel were injured, official figures reveal.
Meanwhile, J&K Chief Minister, Mehbooba Mufti has paid rich tributes to the Major and three jawans killed in today's cross border in Rajouri distrct.
She has conveyed her heartfelt sympathies to the families of slain troopers.
"The sacrifices rendered by the troops would be remembered forever", he said.
The Deputy CM while expressing condolences with the bereaved families prayed for eternal peace to their departed souls.