What could we possibly do to prevent such attacks? Treat every such event like a presidential visit? Bomb-sniffing dogs everywhere? Police swarming the area? All buildings on the route thoroughly searched? Every spectator searched?
We live in a free country; stuff like this is the price we pay. What is the alternative? A police state?
Terrorists can't destroy a country, they can only scare a country into destroying itself.