If he's biting at his rear end, my guess is that it's his anal glands that are troubling him. If you don't know how to express them, your vet can teach you how to do it. There's not much you can do for it at home for tonight, though.
You will need to see the vet tomorrow.
