Hello. This pain might be due to muscular strain in soft tissue around knee which might have occurred due to sit ups..
There is usually local inflammation around the tissue which causes the pain.
Next Steps
Avoid heavy exercise for now. Start hot fomentation locally, take analgesic with muscle relaxant for pain relief, apply analgesic gel locally.
Health Tips
Avoid sitting cross leg, avoid heavy work for now..