Police have foiled a terror plot involving a caravan packed with explosives for a potential antisemitic attack.