Foreign ministry also slams ‘terror attacks’ on settlers; pro-Israel lobby accuses Madrid of equivalence between aggressor and victim