When I was a kid, air rifles were really powerful, Ie the BSA Air sporter, if a slug from one of those had hit you in the helmet it wuold have killed you.
But seriously, you where lucky it was your helmet, just a few inches diffrence and the story could be diffrent.
For sure the police will follow it up, as it assualt, and you where lucky then, but next time it could end up with someones death.
Even with a square section spring, my Airsporter never pushed out over 9.7ft/lb. Modern air rifles (Cubester's BSA lightning for example) manage just under the legal 12ft/lb limit.
The reason 12 ft/lb was chosen as a legal limit is supposedly because that is the power required to penetrate an adult skull, so limiting the muzzle energy of a 15 grain pellet (average .22 hunting pellet weight as an example) was an effort to keep them as low powered as possible, whilst still remaining effective for hunters.
The pellet in the pic doesn't indicate close range or high velocity. All it's done is penetrate the polycarbonate shell and penetrate the polystyrene underneath. That could be achieved at very long range, or by a lowish powered rifle, or even an air pistol.
A modern hunting air rifle would have gone all the way through the helmet, both outer shell and lining, if fired from close range.
That said, I would hate to be on the receiving end of the shot.
My guess is that this was either an air pistol fired from a car (they are limited to 6 ft/lb) or a chance in a million shot from some dickhead firing randomly at traffic from a hundred yards or so away.
Either way, I sincerely hope the police do take it seriously, and the tossers brought to book.