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 reach, with the tips of thumb and first 2 fingers, as hard and fast as many...