Targeting a single person which might be a valid target had war been declared, while also intentionally striking many civilians around them, is the same as targeting those civilians. You knew the bomb you dropped was going to kill them, and you pressed the button. It makes no difference who the primary "target" is.
Otherwise, countries would just bomb all the civilians and all their infrastructure and medical facilities and schools with the excuse that they heard from an unnamed source that there was a combatant nearby, like israel does in Palestine.
Can your logic be used to justify these strikes?
1. this was an intelligence failure and a tragic mistake.
2. Trump and Hegseth are (like) cartoon character villains.