The problem is how you define your “target”. In Israeli Lavender program it seems they are killing people for belonging to the same Whatsapp group as someone identified as a terrorist. And that's because Israel has a long time policy of “punishing” family members of “terrorists” (the term includes both legit terrorists but also people who are just political opponents).
Exactly. Simply "identify the target"! It's an incredibly broad handwave that ignores all the unsolved problems in computer vision and warfare fire control.