The troops returned fire and reinforcements were rushed to neutralise the terrorists, the officials said, adding that a search operation is underway in the area.
Army troops thwarted a terrorist attack on a security post and house of a village defence guard (VDG) in Jammu and Kashmir's Rajouri district early Monday morning, officials said.
A terrorist was killed and another was most likely injured on Saturday in an ongoing operation in the densely forested area of Rajouri district in Jammu and Kashmir, Army said.
A second terrorist was killed in an encounter with security forces on Wednesday, raising the death toll during the ongoing three-day search operation in a remote village in Jammu and Kashmir's Rajouri district to three, officials said.
He said the search operation was launched after police received information about the movement of terrorists in the area.
Firing and mortar shelling from across the LoC was reported in the Nowshera sector of the district around 3.30 pm and at 5.30 pm, they said.
Amid heightened security across Jammu and Kashmir after the recent bombing of an IAF station by armed drones in Jammu, authorities in the border district of Rajouri on Wednesday ordered ban a on the storage, sale or possession and use and transport of the flying machines.
Modi visited the border district in Jammu region, his first to Jammu and Kashmir after the abrogation of Article 370, coinciding with Infantry Day celebrations.
The slain intruders are believed to be members of a Border Action Team comprising Pakistan army jawans and trained terrorists, an army officer said on condition of anonymity.
A search operation in Thanamandi belt turned into a fierce encounter after the terrorists opened fire on the forces, who retaliated, Army officials said.
The firing from across the border started soon after the army noticed some suspicious movement along the LoC in Nowshera sector, the sources said.
Last month, two Army personnel and a 10-day-old baby were killed and several civilians injured in heavy Pakistani shelling and firing in the twin districts of Poonch and Rajouri in Jammu region.
With these casualties, 17 people, including nine security personnel, died and 70 were injured in Pakistani shelling and firing along the LoC and International Border in the Jammu region this year.
Border skirmishes witnessed a spurt after India's preemptive air strike.