No. It did not discharge unexpectedly. It should be fully expected to discharge when the trigger is pulled.
Which is what this dumb *expletive deleted*ck did while trying to put a light on a loaded gun at a gun range.
What was unexpected is that someone so stupid would be allowed in public without a helmet, spit bib, and adult escort.
Sent from my iPhone. Freaking autocorrect.