Sounds like it was the iOS bluetooth exploit being spammed in a public place. There are a few variations, one that’s a little annoying, and one that will lock up your phone until a hard reset - your experience sounds like the latter.
This exploit is broadcast to all devices in the area so, good news is that, no one was specifically targeting you. The -only- way to avoid this is to turn off Bluetooth via Settings.