It could have been a sebaceous cyst from an ingrown hair. I'd get it looked at to be sure.

TMI

Did the stuff that came out look like cottage cheese?