Targeted voting as you describe it is not allowed. There is a script in place that undoes it in some cases. The precise workings of the script are not public, not to make it easy to work around it.
Moderators have some tools to track "strange" voting, too. But, they cannot see individual votes either.
One way to proceed is to wait (a day or so) to see if the script undoes the votes. However, this might not happen or not fully address the situation.
Another thing you can do is contact the moderators and explain the situation. You can do this:
flag the post in question, reason "other" and explain the situation.
write an email to the moderators, for details see Who are the MathOverflow moderators?Who are the MathOverflow moderators?
It is my understanding that they do react on such reports; as said the behavior is not allowed. However, a single or very few problematic votes might be impossible to trace.