Have had this happen several times, mostly with hand fed chicks often as they come of age and get spunky. It's pretty easily curbed with calm and deliberate determination.I have had a similar thing happening with my hens. Whenever I put one down this one chicken will attack which ever one I was holding. She does not attack me, just the other hen when I put it down. Any suggestions on this behavior?
I peck them back, on the head or anywhere I can reach, with the tips of thumb and first 2 fingers, as hard and fast as many times as I can before they get away. Well, not hard enough to hurt them, just startle them and let them you mean business. That's what another chicken would do, so they understand that kind of communication.
If that doesn't work after a couple applications, I hold them down to the ground with my hand on their back until they submit....again firmly enough to get the job done but not hurt them....add a few finger pecks and/or tug on the feathers on the back of their neck.