Militant fire from across the Afghan border kills two Pakistanian soldiers, the Pakistan Army reported on Thursday.
The army said it retaliated and killed two or three attackers.
The incident in Pakistan's Bajaur district is the first of its kind reported since the Taliban took over Afghanistan.
On Saturday, the United States said it had killed two ISIS-K militants in eastern Nangarhar province which borders Pakistan. The Taliban condemned the strike.