Seven people, including teenagers, have been killed in two separate shootings in South Africa.