The rules of a just war to which America has usually adhered, forbid the direct killing of enemy innocents even in war.
Exactly right. Civilians can never be targeted directly.
Obviously when you're targeting a munitions factory or something bombs go astray. But you can never plan for or intend for the bombs to hit civilians or civilian areas.