Did I overreact?

I got my bachelor's in secondary education for science. To make money over the summer I took a job as a teacher's assistant for summer school. I'm 22 and I'm with high schoolers. There was has been this kid who clearly has a crush on me. He's 16 and would say a lot of inappropriate things that I and the teacher gave gotten on to him about. She told me if he keeps doing it I can kick him out of the classroom. I tried not to but I was helping a boy next to him and these girls were talking about bras and the kid yells "What's your bra size Ms. Menrole." I said "Get out! That's enough! I'm done! Get out!" I kicked him out of the classroom and now I'm wondering if I should feel bad for yelling at him. I mean this had been going on a few weeks now and he would not stop no matter how many times I or someone else told him to.