Bangladesh ex-PM freed on humanitarian grounds