Mr. Bush praised the Pakistani leader 's commitment to fighting terror but warned that more work was needed to defeat al-Qaida .