It was the gun of course.

One user of Musical Theatre News blogspot said: “It seems there was a problem with a gun.”

No, there was no problem with the gun. More than likely the gun did not load itself, aimed at the actor or pulled the trigger.  Some human screwed up inside that chain and an actor may have to play Captain Hook in the future.