this happened to me too.
put some ice on it for a while.. just plain ice. and keep moving your thumb, to keep the circulation and joints moving.
then after a couple of days, if it still hurts go to the drug store and by a finger/thumb splint.
it should be healed in a bout a week.