Need an X-ray
There is no way to know for sure without an x-ray.
However, if there is no obvious deformity then simply protecting it and resting it may allow it to quiet down. It it doesnt get a lot better in a few days it may be broken or have been partially dislocated. In which case, see your doctor for an evaluation.