One is permitted to kill a rodef - someone who is planning to kill you.
What are the parameters of identifying someone as a rodef when he is a member of a terrorist or any other group?
Examples
If you know someone is a member of Hamas, Hezbolla, etc. You see this person on the street coming towards you. The person doesn't appear threatening and you don't know if he is carrying a weapon or plans to harm you. Can you kill him / her based on the assumption that the group is trying to kill all Jews and being a group member, s/he may be likely to do that?
Same member identification, but, as the Israeli army frequently does, you bomb the person's home while he is home.
You're a soldier and your country is at war with Extrania. You see an Extranian citizen walking on the street, clearly unarmed and unthreatening. Can you kill him based on your country being at war?
Can the definition of rodef be, generally extended to a member of a group, or does it have to be someone specific who is specifically trying to kill you but not if he's trying to kill others?