The "appalling attack" had "the potential to be much worse"