Well, this is an entirely complicated scenario in regards to which Pain you’re referring to. But either way, Naruto didn’t kill any of the Pains. They were either already dead, had a change of heart, or died after being defeated by Naruto (but not by his hands).