Peck 'em back!
This is more about a rather aggressive pecker, but....
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 peck them back, on the head or anywhere I can...