Hi, thanks for using health care magic
It is possible that the popping noise that you heard was a tear in a tendon or ligament. In addition there is the risk of fracture
which would also cause limited movement, swelling, deformity
of the limb and pain.
You should perform RICE- rest of the limb, ice pack to reduce compression, compression bandage to reduce swelling and elevation.
In addition it may be best that you visit your doctor as soon as possible for an assessment.
I hope this helps and you feel better soon