NATO chief warns war in Ukraine could drag on for years