If the nail is long enough to clip, try cutting the bent part off using nail clippers. If it's too bad to do that, try to be as gentle with it as possible to not irritate it further. Try using a cloth to put pressure on the bloody part of it- but not too much.