Probably a contusion injury ie. The blood would've oozed & clotted for you to have severe pain
. Ice therapy would definitely help to reduce the inflammation. We also advise you to use knee cap which would help to prevent the knee from damaging further and also to maintain the quadriceps muscle tone.