I was once attacked by my Head Hen (least she thought she was). She jumped in the air and pecked me through my jeans on the thigh and brought blood. I walked back out the pen and grabbed a stick. "I am She Who Brings All Food AND She Who Must Be Obeyed!" I smacked her on the head with the stick, chased her away, and fed everyone else.
Never hit a hen on the rear or sides with a stick (or foot). The worst thing you could do to a hen would be to break an egg inside her.
Sit on the rude chicken. I don't mean squash them. My husband grabs the offending rooster or hen, presses them to the ground, and kneels over them. The chicken swears Hubby is trying to mate with them and this obviously shows Hubby is the Alpha and everyone else must submit. Also, be sure to laugh at them. One look at the chicken's face usually is all it takes (lol) but they do understand laughter and laughter at their expense is humiliating.
While you are holding down or sitting on the offender, throw food or treats to the others. Keeping the "student" from eating shows you are in charge also.
Carry a "stick" with you into the yard everytime for the next week or so. We have a children's rake. It's less than 3 feet long and the fan on the rake is less than a foot. Just right for swinging to make a point, but won't cause serious damage! At the first sign of any issue, I grab the rake. Otherwise, the rake is against the fence, ready for action.
When the 4H guide for raising chickens tells children to meet a rude rooster's attack with a swift kick, you KNOW that has to be right. Just saying.