While the pillars are still up, attack him until he is really low. When he starts screaming at you to be free, you can kill the pillars and he should spring out. You may have to heal the dwarf several times, but I freed him when the dwarf was under 50 hp.