When you don't want to kill a character

I write fiction, specifically Mystery/Trillers, sadly sometimes the characters died.
In my novel The Writer, some characters died, and honestly, I didn’t remember that were hard to kill. When I wrote the second book (a Novella to be published in the Fall) characters died, and I had no problem.
 
I begin last week the next book, and got stuck. I had learn that I get stuck when I need to do something that I don’t want or when I don’t want to do something that I need to do, in this case, potentially kill a character that I like. I wish I can be one of those writers that plan, and can tell the character and the story were to go, but I am not, the story shows and I just scribe, my job is to tell the story I am listening, and not the story I want.
In this moment, I may need to kill a character that I like, or fight with the story, in case of doubt I don’t think I will win, ever, I can fight the story, I did it on The Writer, but wasn’t until I understood that my job was to listen, that the book came out right.
As a writer as well as a reader, is hard to see good characters died, but as a writer, you invest so much in your characters, that if they do sooner, you have no one to tell about it.
I don’t wat to kill Mr Banana, and I hope I don’t need to, but at least it’s going to be in extremely danger for the next days.