Police in the small southeastern Arizona town of Thatcher say Robert Layton drove to the high school parking lot around 11:45 p.m. Friday and complained about the loud music.
Witnesses say Layton pulled a 9mm handgun out of his pocket and waved it around before pulling wires to disable the music.
A DJ at the event wrestled Layton to the ground and disarmed him.
Authorities later said there were no bullets in the handgun.
Layton was undergoing an evaluation at a hospital before being booked into jail. It was unclear Sunday if he has a lawyer yet who could speak on his behalf.
Copyright 2019 The Associated Press. All rights reserved. This material may not be published, broadcast, rewritten or redistributed.