JOHANNESBURG—Wang was sprawled on his back in the sweltering heat, when veterinarian Katja Koeppel approached with apple slices and the daunting task of cheering up Africa's last polar bear.

"Wang!" she called. "Here, Wang!" Ms. Koeppel threw the sliced green apples 30 feet down into his rock-and-grass enclosure.

Wang...