Police are investigating a possible terror threat after a caravan was found with explosives and a note containing the address of Jewish people and a synagogue.