A 40-year-old man detained in the wake of a hostage situation in the eastern German city of Dresden is dead of injuries sustained while the hostages were freed, say police.