Bacterial resistance to arsenic protects against protist killing