It appears that you may have damaged a tendon or muscle in the wrist.
Make an appointment with your doctor so that you can get the proper diagnosis and referral for further evaluation if required.
In the mean time, strap your hand and wrist with a bandage to keep the wrist supported to allow it to heal and don't put any more pressure on it until it is well recovered. Elevate the wrist by using a sling if this helps.
It sounds like tendonitis you should go get it checked out.
Hi it would be worth while to get a Scan or an Xray on your Wrist , for peace of mind , Take care ,