This could be either a snapped tendon behind your knee, a meniscal injury
or a muscle tear. For first aid
, get some analgesics and give rest to your knee. You need to visit an Orthopaedician for diagnosis of the problem as there are a lot of causes of pain around the knee with snapping.