Spain says international community ‘must do everything possible’ to avoid escalation