The commander of NATO forces in Afghanistan says the international community has underestimated the resurgence of the Taleban , partly because the war in Iraq diverted attention and resources .