The leopard was captured after becoming trapped in a livestock enclosure, killing some 30 animals, officials said.