Sounds like the kid made a rail gun.
Back around 1968 I had a electrical shop teacher ( when was the last time you heard of that) that taught us to build coil guns and we shot nails across the room.
I must have had a relative of his, In 1976 we did the exact same thing, with the Principal watching. He laughed the hardest of all of us.