Familiarity breeds contempt.
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...