The exchange of fire occurred in the tribal region of South Waziristan, which is situated near Afghanistan. The region has long been a safe haven for militants who are active on both sides of the border.