Two separate mass shootings near South Africa’s two biggest cities killed at least 27 people