It could be that Yagura had some secret plans that would endanger the balance among the ninja villages. Naruto, having a strong sense of protecting peace, discovers these plans and decides that eliminating Yagura is necessary. For example, if Yagura was planning to use a powerful and dangerous jutsu that could destroy multiple villages, Naruto would act to prevent it even if it means killing him.
One possible motive could be that Kakuza has committed some heinous crimes against the Hidden Leaf Village. Maybe he has been involved in secret attacks on the village or has been plotting something really bad that would endanger the lives of many villagers. Naruto, being the protector of the village, would then take it upon himself to stop Kakuza by any means necessary, which unfortunately might end up in killing him.
One possible motive could be a misunderstanding. Maybe Hiashi mistakes Naruto for an enemy who has infiltrated the village in disguise. Another reason could be related to clan politics. If Naruto somehow gets involved in a situation that threatens Hiashi's clan interests, Hiashi might take extreme measures.
In the 'boruto kills naruto fanfiction', a motive could be a power struggle. Boruto might believe that Naruto's power is holding back the village's growth or his own potential. He could think that by eliminating Naruto, he can bring about a new era of power in the Hidden Leaf. Also, it could be out of desperation. If Boruto is in a situation where he believes that killing Naruto is the only way to save someone he loves, like his mother or a friend, he might take such a drastic step.
Perhaps in this fanfiction, Jiraiya discovers that Naruto is going to be the cause of a major catastrophe in the future. He might have seen a prophecy or some sort of sign that convinces him Naruto has to die to prevent this. It could also be that Jiraiya has been misled by false information about Naruto, which makes him think that Naruto has become an evil force that needs to be eliminated.
It could also be related to a prophecy or a pre - determined fate in the fanfic's plot. There might be some kind of dark prophecy that says Kawaki has to kill Naruto to prevent a greater evil. Or perhaps Kawaki is being controlled by an external force that has a vendetta against Naruto and uses Kawaki as a tool to carry out the murder.
Well, it could be that Kakashi is under some sort of dark spell or curse that makes him see Naruto as a threat to the village. In some fanfictions, there might be a situation where the village's safety is at stake and Kakashi believes that sacrificing Naruto is the only way to save everyone. Also, it could be a case of false information. If someone convinces Kakashi that Naruto has turned evil and is about to cause great harm, he might take the drastic step.
In fanfiction, Naruto might kill Konoha if he's under some sort of mind control. Maybe an enemy manages to manipulate his thoughts and turn him against the village. Also, if Naruto experiences a great loss because of Konoha's actions or inactions. Say, if his friends are killed due to Konoha's negligence in protecting them, and he blames the village as a whole. Or if he realizes that Konoha's system is so corrupt that it's causing more harm than good to the world.
One possible motive could be if Sasuke was on a path of destruction that endangered the entire ninja world. Naruto, as the protector of peace, might see killing Sasuke as the only way to stop him. For instance, if Sasuke was about to unleash a powerful and uncontrollable jutsu that would wipe out many innocent lives.
A possible motive could be that Naruto discovers some dark secret about Minato that makes him feel betrayed. For example, if he finds out that Minato was involved in some unethical experiments that led to the suffering of many people. Or perhaps Naruto is tricked by a powerful villain who manipulates his emotions and convinces him that Minato is the root of all his problems.
One possible motive could be mind control. Maybe an enemy manages to take over Kakashi's mind and forces him to harm Naruto. Another could be a misunderstanding. For example, if Naruto was thought to be possessed by a powerful and dangerous entity that Kakashi believed could only be stopped by killing Naruto.