Sometimes thought like "what happens if you are attacked and while trying to defend yourself, the person dies", flies through my mind and I just wonder if I can live with the consciousness that i have taken a soul.
I mean it will be as if the person will always come and hunt me in the dream.
I respect all the military men out there.
If it's not intentional, professional therapy might be helpful. However, such a situation can disturb you deeply, leading to mental disorders sometimes. It's always best to try to make your life guilt-free. The fact that even such thoughts disturb you means you have a good heart. Continue to be good, stay positive!