“Not a gun expert but COULD this class of students have stormed him and saved some people? I am not sure if this (as in the French train shooting avert) is always possible”
Yes
Throw anything toward the shooter to distract him. re, pencil, pen , change from pocket but then make your move to get at him. You may end up shot , wounded, maybe worse but it may help save some of the other people.