The European Under-21 Championship match between Spain and Italy came to the boil in the final minutes when three players were sent off.