His term ended prematurely in August 2008 when a military junta led by General Mohamed Ould Abdel AZIZ deposed him and ushered in a military council government .