Army ousts president who kept delaying elections