Musharraf, Karzai vow to combat terror