A former Ukrainian parliamentary speaker has been shot dead, with officials giving no indication whether the killing was linked to Russia's war with Ukraine.