Let out a yelp, loud enough to startle the assailant. "Aaahhhhh," or "Ouuuuuu!" "Ayayayay!" Something of this nature.
Then, you going to a confused and bewildering look, like "How could this have happened?"
Likely, you will get apology without having to get to dispute with the aggressor . . .