Carnivores like leopards, lions and hyenas have been killing livestock for centuries, causing financial losses to farmers.