Thank you for your query.
It is difficult to say what can be the reason for the pain without examining the joint and its range of movements. It is quite possible that your son might have hurt the knee joint while doing gymnastics and/or karate and would need some time to heal. May be a MRI
will be required to know the exact pathology.
I hope I have answered your query to your satisfaction.
Wishing your son an early recovery.