The Muslim Brotherhood leader was the country’s first democratically-elected president before the coup and imprisonment.