Reflex caused me to smack my little brother on the arm

My little brother is 19 month and my daughter is 3 month. Today my mom, grandma and him stopped by to say hello. When they got here, my mom asked me to make my little brother food. Of course they started playing with my daughter and my little brother kept putting her mouth on her and kept asking them to stop since he just got over an illness. He is well disciplined and doesn’t understand “no”. As I’m standing in the kitchen, cooking his food, all the sudden I hear my daughter screaming as shes laying on the couch next to my mother and my brother with both hands graving her little arm and having it in his mouth as he is jerking his head back and forth and I though he is biting her. Of course my mother instinct kicks in, i blank out thinking he is biting her, run over smack his arm and grab my daughter. I’ve never hit anyone in my life before and I never meant to hurt it, it was just how my body reacted to my daughter screaming. My mom left my house screaming at me, my disgusted is screaming and I just feel horrible!