You talked about the degree of suffering changing based on if that person has been helpful in your life. Both people who died suffered the same fate why is it less consequential if the person killed was a stranger?

The person who helped you has done things to make your life easier in some ways. Even then, one commits negative action towards them it has a higher degree of suffering attached to it. Although both a stranger and this person suffered the same fate, it is your actions and your Karma that is important here.

If you are just doing a job for example a soldier is just doing their duty, do they still have to suffer?

Absolutely. The soldier has a choice of whether to commit that negative consequence and by choosing to commit that action, they are creating conditions that will affect them negatively. Now, this is different from imminent danger. For example, if there is someone with a bomb who is about to kill hundreds of people and you kill that person you don’t suffer negative consequences. In this case, you actually saved hundreds of lives.

Do you create bad Karma by raising animals to eventually kill?

Yes. Since one has an intention to kill the animal while raising them, they do suffer the consequences of the negative Karma attached to killing that animal. On the other hand, if you are raising animals and not sending them to butchers, you don’t suffer the consequences of killing since you are not actually killing those animals. However, if you are taking milk from those animals, you could suffer the consequences of stilling since you don’t have permission from the animal to get their milk.

This is just an evolutionary process and humans used to kill just to survive.

True. But, we have long passed the days of hunter-gatherers. 100,000 years ago, we used to kill on a daily basis is different. We have evolved since then and we don’t need to kill to survive anymore. We can make better choices. For example, we can be vegetarians and take care of our food needs. In the example of mosquito, we can avoid killing it and still be safe from a mosquito bite. We have no need to kill it with a vengeance.