The ambush came a day after a commander of Pakistani troops said the army has almost completely eliminated militants in South Waziristan .