A tiger that escaped from a private farm in South Africa and attacked a man and killed two dogs and a pig while on the loose for days was euthanized on Wednesday.

Sheba, an 8-year-old female tiger, was shot in the early hours of the morning after being spotted in a residential area near where it escaped in the Walkerville region south of Johannesburg, police said. Sheba, who was kept as a pet in an enclosure on a smallholding, escaped on Saturday.

Officials said it was impossible to safely capture the big cat and its owner gave the go-ahead for it to be euthanized.

"Due to the terrain and area it was not possible to contain her or secure her safely," said Gresham Mandy, a community police group representative. "At 3:45 a.m. the decision was made to euthanize her while it was still safe to do so. Unfortunately at that moment in time darting her was not an option."

FLORIDA DEPUTY FORCED TO KILL ZOO'S TIGER AFTER CONTRACTOR PLACES ARM INSIDE ENCLOSURE, GETS ATTACKED: REPORTS

Mandy said it was "not an easy decision" but the safety of the community was "a priority."

William Mokoena told South African TV station eNCA how he had been attacked by the tiger on Saturday night while he was walking home from a grocery store. Mokoena said the tiger pounced on him when he bent down to tie a shoelace and tried to drag him away. He used his legs to fight the tiger off, he said.

Tiger escapes

Local community police group search for a tiger, that escaped from its enclosure, in Walkerville, south of Johannesburg, South Africa, on Jan. 16, 2023. (AP Photo/Themba Hadebe)

Search officials used drones and a helicopter to try to locate Sheba. The big cat was finally tracked down in a nearby farming area and close to a number of homes, Mandy said.

The tiger's escape has prompted animal welfare organizations to question South Africa's laws around keeping exotic animals as pets. Animal protection group the SPCA said it was concerning that a license was not required to have exotic animals in the Gauteng province where Sheba was kept.

CLICK HERE TO GET THE FOX NEWS APP

"This tigress, which has already displayed the behavior of a tiger in the wild, did not wander into a residential area on her own," the SPCA said. "She was unwillingly brought there to be held in captivity, something that should not have been allowed to take place to begin with."