Views on collective responsibility for riots have changed a lot. These days, it's only the individual rioters who commit specific crimes that are thought of as bearing responsibility. But before the 1960s or so, a violent crowd was seen as collectively responsible, and it wouldn't have been considered unjustified to treat them accordingly, the way you'd be justified in violent self-defense against an individual rioter today.