This sounds to me like you brushed up against a Saddleback Caterpillar (Sibine stimulea). Its branched spines can be quite painful if not handeled carefully. The caterpillar will eventually turn into a reddish brown moth.