It seems that you might got some injury
of soft tissue
, ligaments and meniscus
of knee joint.
Give complete rest to joints.
Apply ice pack 2-3 times a day.
Apply Knee cap during day time to support knee muscles, remove cap during night time.
Do Patellar exercise afterwards.
Ok and take care.