I think the loop-hole here is that a weapon manufacturing facility is almost certainly a military strategic target, and international law allows you to target the infrastructure provided the military advantage gained is porportional to the civilian death.
So you can't target the individuals but according to international law its fine to target the building they are in while the individuals are still inside provided its militarily worth it.