The U.S. military says the troops were conducting security operations when the blast occurred Friday in Paktika province , near the border with Pakistan .