https://www.newser.com/story/384710/legality-of-khameneis-ki...
His daughter, son-in-law, and grandchildren were civilians. Intentionally targeting civilians is a war crime. Even if they were not targeted directly, an attack is illegal if: it fails to minimize civilian harm, or the civilian casualties are disproportionate to the military advantage
International law is very clear on this point.