In December 2001, the United Nations Security Council authorized the creation of the International Security Assistance Force (ISAF) to help maintain security in Afghanistan and assist the Karzai administration .