It might be muscle strain which is causing you the pain.. Try to avoid any activity which increases the pain, take rest and apply ice packs on the affected area thrice daily. if it doesn't subside in 2-3 days, consult a physiotherapist near you
Next Steps
Ice packs
Rest
Knee brace if required
Health Tips
Avoid playing for a couple of days