Sadiq al-Mahdi was Sudan’s last democratically elected prime minister before he was toppled in a 1989 coup.