CARLSBAD (CBS/AP) — A 12-year-old boy was injured after a small plane crashed on a crowded beach in Southern California. The terrifying ordeal was caught on video.

Federal Aviation Administration spokesman Ian Gregor says the single-engine Piper PA18 lost engine power and hit the Tamarack State Beach in Carlsbad shortly after 3 p.m. Saturday.

The beach was packed for the Fourth of July. The aircraft, which had been towing a banner, flipped over after landing.

The crash was captured on video by one beachgoer who posted it on social media. The plane can be seen going down as people scream.

Another video shows the plane upside down on the beach, and first responders treating the victim.

California State Parks Lt. Justin McHenry says the 23-year-old pilot was not injured, but the youngster who was on the ground sustained a gash to his head. He was taken to a hospital in San Diego.

TM and © Copyright 2015 CBS Radio Inc. and its relevant subsidiaries. CBS RADIO and EYE Logo TM and Copyright 2015 CBS Broadcasting Inc. Used under license. All Rights Reserved. This material may not be published, broadcast, rewritten. The Associated Press contributed to this report.