She might have wet tail. Is it wet and is she having larger poops than usual? It could be wet tail. Its the hamster's version of diarrhoea and it is deadly. It could kill your baby in hours. Please visit a local vet.
If stuff is hang out of a hamster well of course it will die so please prepare for it. And I am sorry for your lose but make proper burial and always light a candle for your hamster.
Cause I can tell you love your hamster a lot. But I will pray for you and your hamster every night.