China has lashed Australia and New Zealand for “colonial-style arrogance” after a joint statement condemning Iranian attacks.