Main target was the energy sector, but residential buildings and a railway were also damaged, President Zelenskyy says.