The self-destruct Missile is an experimental program "Sword" developed by Paul Gekko.
Discovering that Black Zetsu vulnerable to apoptosis, Yuki Imai sets to work on this weakness. Yuki and his team of scientists create the bomb, to be used on Queen Kaguya. This weapon is entrusted to the Paul Gekko. Paul Gekko launches the program into the Queen of Chakra, but it last words can be said, Thank you allowing Self Destruct Missle to activate, destroying Black Zetsu and peace is restored to the Village.
If the Person slays the Enemy, the Black Zetsu may cause itself to be destroyed.