i really can not see how this can be prevented. It seems to be the new norm for terrorists ever since the Nice attack.
In fact, aside from St Petersburg, all attacks after that in Europe (Berlin Christmas attack, London, Stockholm) have been truck/car attacks. Very hard to stop it. they just need a vehicle and pedestrians around.
Reports say shooting going on in the area and one suspect has been arrested.