I think that luck was on their side - the guy loading the weapon thingy whilst in the loo and the US marines being in hearing distance and able to, correctly, identify the source of the noise.
As you say, Svejk, it could have been a much more serious outcome, with many casualties.