Well of course civilians will fight invaders in Okinawa, it's their homeland. The Nihau incident, on the other hand, involved hawaiians, not japanese. If you consider them part of the japanese population, what about the US? How many americans from japanese descent attacked soldiers there?
About the bombings, the targeted bombing wasn't working very well because of weather, so they decided to obliterate cities with incendiary bombs, civilians and all.
But returning to mass murdering civilians to advance military objectives: what would you think of the Soviet Union destroying with atomic weapons Munich and Frankfurt, to force Hitler to an unconditional surrender? Would reducing the deaths of soviet soldiers be a good justification?