Power cuts have affected nine million people in revenge for a successful counter-attack, Ukraine says.