The IAEA has confirmed damage to a key Ukrainian substation after military strikes, warning of risks to nuclear safety.