All-rounder Glenn Maxwell has been ruled out of the T20I series in South Africa following an ankle injury sustained during training.