Ukrainian officials said the assault killed at least five people around the country and that it was the first time a government building in the capital had been damaged since the war began in 2022.