Maybe a vein on the way in or out.  Also, if it was a larger bolus (>3cc) I suspect you can rupture some smaller vessels from the injection pressure.  Startling, yes, but not a problem.  If it happens again, just hold pressure for a minute or two.  Pick a different site for the next round.  This happens to me most commonly when I inject my glutes.