2 arrested for threats to 'shoot up synagogue'