One of Africa’s best-known figures went from being an icon of independence to authoritarian president.