Officials say the attack took place Tuesday in South Waziristan , along the country 's border with Afghanistan .