Leader whose time in office was marred by inflation and a hostage crisis won praise for his humanitarian work