Afghan President Hamid Karzai says terrorists who are killing foreign soldiers in his country want the international community to fail in its efforts to rebuild war-torn Afghanistan.

Mr. Karzai told the U.N. General Assembly Wednesday that terrorists see a prosperous Afghanistan as their ultimate defeat.

In a clear reference to neighboring Pakistan, Mr. Karzai told world leaders that "terrorism does not emanate from within Afghanistan." He said there is a need to destroy terrorist sanctuaries beyond Afghanistan, and to dismantle all terror networks in the region.

Mr. Karzai's remarks come just two weeks after Pakistan's truce with pro-Taleban militants in the North Waziristan region. Pakistani troops agreed to end their crackdown in the region, and the militants said they will stop harboring foreign terrorists and will stop crossing into Afghanistan to launch ambushes.