I think we have more serious issue then not being able to play tennis. Which is weak wrists.
Stop playing tennis for now. Do some weight training.
First wait till pain goes away.
Then check range of motion you can move wrist in.Remember those limits of motion where starching hurts.
hold barbel or some thing to to do same movement. (I will find a video later.)
I assume you haven't done any sports before? The reason stopping tennis is a good idea because, while playing you can contain movement of your hand/wrist. So tennis court is NO place to recover/heel.
It happens off the ground. You need to make you forearm/wrist strong enough to hold racket for along time + to handle the trust. Good news is it will be achieved very easily.
Be happy cuz playing tennis pointed out one area which needed attention.