Four men have been arrested over a terrorist plot to blow up a synagogue and fire missiles at US military planes.