I have been on both sides of this. I have a son who does sometimes have a hard time reading social cues. Last year, in kindergarten, he did get hit a few times by a kid who he considered his 'best buddy'... that boy would say "I'm going to play with so-and-so now" or "I want to play by myself"... my son didn't honor that a few times and ended up getting hit. I told him that it was a bummer he was hit, and that when people tell you repeatedly to back off, and you ignore them, they do sometimes get frustrated and hit. Because they are young and hey, you aren't respecting their space. In that situation, I made it clear that if he didn't want his friend to hit him out of frustration, *listening* to him and leaving him alone would be the best option.
He's also been bullied this year at school (different kid, covert hitting/punching/kicking-- and not provoked) and so we are working on helping him speak out when this happens. He now has a safety plan in place for him at school. After he was hurt by the other boy a couple weeks ago, I pulled him out until they could create a safety plan and ensure me the boys would NEVER be left alone together. It is working well so far.
My advice would be to come at the situation from a position of "I want to empower my kid to get help" instead of "I want you to fix that other kid" (the one following DD around). I would ask the teachers to help your daughter find good/appropriate ways to separate from this kid and to ask for help. Frankly, I CAN understand why the hitting happened in this regard. Not that it's right, but if your daughter doesn't have the teacher's support to stay away from this kid following her around, it's not a stretch of the imagination for me to think that your girl finally thought "enough is enough" and reacted pretty typically.
(Let it be said-- I am NOT excusing the behavior, but I think I do understand how it came to be.)
So that would be my advice-- ask the counselor and teacher directly: "When Daughter is feeling like the other kid won't leave her alone, even when she's asked them to leave her alone, what do you want her to do? How can we ensure that Daughter isn't going to be continually pestered by this kid? Because this is causing her a lot of stress." **Put it back to them.** That is what I had to do in my son's situation; I assured the school that I would do everything I needed to on my end to reinforce the safety plan/concepts AND I also put the responsibility for finding safe and manageable options for my son back on the school. The school is working with the other child, but as that child's parents don't hold him accountable, we may have a long road ahead. The least they can do, though, is to ensure your daughter has safety at school, and that includes others respecting her person and her personal space.
At this point, frankly, I am less worried about my kid getting into a little trouble if it means that they are standing up for themselves as a last resort to what's going on. Yes, she should have gone to the teacher-- how does the teacher respond? Are her requests for help being honored, or dismissed? Those are things I would want to know.
ETA: I loved what SH wrote: "The kid being bothered and HARASSED, should NOT have to... be the one that MANAGES, the aggressor, NOR should the child be expected to, do that.The SCHOOL and the TEACHER, should be handling it and the aggressor."