It would be cruel to try to do it yourself
Try taking it to the vet because you may not be able to fix it on your own.
talk to the vet about hamster care.
it would be like 40$ for going or you could fix it your self getting a string and a match and tape.here are the directions.if you have a GOOD friend have her/him do this .break match in half .wrap...
Either its limping or there's a looseness in its leg.