Former army chief gained power in a bloodless coup, survived two assassination attempts and eventually stepped down while facing possible impeachment amid public discontent