The Ukrainian had been part of a plot aimed at assassinating President Volodymyr Zelenskyy during his visit last week to Mykolaiv, a southeastern city near the front, officials said.