NEW YORK – A 12-year-old New York City boy allegedly pulled a gun on a classmate and demanded she give him a chicken nugget earlier this week, NYPD officials told WPIX-TV.

It was his second attempt to get a chicken nugget from the girl, police said. The boy noticed the girl buy Chicken McNuggets at a McDonald’s on Lexington Avenue and East 103rd Street in Manhattan Tuesday.

When he asked her for a McNugget, she refused.

The boy allegedly followed the girl into a nearby subway station, pointed a gun at her head and demanded a McNugget again, police said. The girl smacked the gun away from her head and told the boy to leave her alone.

She boarded the train unharmed, police said. The girl said she later saw the boy showing the gun to another child on the train.

Police took the boy into custody on Wednesday after the girl reported the incident to school officials.