It could be anything. Maybe you stressed a muscle. Maybe it's a joint. No one can tell without examining it. The only thing I can think of is to rest it and maybe take some aspirin and wait until the morning to see if it gets better. If it doesn't get better soon it might be a good idea to have it checked out if you can.