But otherwise there are some rules for engagement in partisan warfare. For example they must be marked as combatants by uniform or some other clear sign.
Exactly for this reason, to be able to divide between combatants and civilians. The more the partisans ignore that, the more civilians will die. Which is why it is also frequently used as a dirty tactic to raise more civilian uproar and more joining the partisans.