It does not appear that this particular electricity shortage is caused by moving away from fossil fuels. The coal plant shutdowns mentioned in the article were outages (2 unplanned and 1 planned) [1] rather than permanent closures due to an energy transition.
[1] https://www.nasdaq.com/articles/kazakhstan-rations-power-aft...