The attack came at a time of heightened anxiety after a deadly terrorist attack at a synagogue in Manchester.