Anthrax has killed two elephants in southern India, spurring health authorities to vaccinate cattle as they try to stamp out the deadly disease.