Iran pledges ‘support’ for Syria if attacked