How hard did you squeeze it?
The squeeze technique is tricky, but you're supposed to squeeze the part of your penis just below the head of your penis, right where it meets the shaft.
Give it some time. Don't masturbate for a couple of days - rest it like you would any other injury - and then see how it feels. If you still have the issues, see your doctor.
https://www.healthline.com/health/squeeze-technique#stop-squeeze-technique