You may have fractured one or more of the small bones in your hand. I suggest you get an X-ray to check for this. In the meantime paracetamol
may help the pain. Also, try to elevate your hand when possible if it is swollen.
Dr K A Pottinger