NATO is in Afghanistan to fight terrorism, says chief