US President Barack Obama has vowed the international community will not abandon Afghanistan as it seeks to take control of its own security.

At a meeting in Chicago - where police clashed with anti-war protesters outside - NATO leaders have confirmed they will withdraw combat troops by the end of 2014 and leave behind a training mission.