Researchers ended a large trial in South Africa after finding that an experimental vaccine offered little protection.