The military takeover comes as the West African nation was awaiting the results of Sunday’s election.