Not a lawyer, but my understanding is civilian casualties are not unlawful (according to international law) when the target is legitimate (on the theory that it is otherwise impossible to legally fight a war with an enemy that hides behind its citizens). To be clear this is not to say war crimes are not also happening.