In modern conflicts, sharing photos or videos of the results of enemy attacks greatly aids in their battle damage assessments.
It's informative to look at history, and see how censorship as effective, as it was here in the US during WWII.[1] The Japanese were floating bombs into the US, which were effectively unguided intercontinental weapons. The censorship campaign kept all knowledge of the effects from reaching back to Japan, which factored in their decision to abandon the effort as resources ran short toward the end of the war.
So, yes... publishing information can indeed be directly harmful to state interests. I'm generally opposed to censorship, and it shouldn't be allowed unless there's been an ACTUAL declaration of war. Far too often, censorship is used to cover up war crimes, and other abuses of public trust.[2]
[1] https://en.wikipedia.org/wiki/Fu-Go_balloon_bomb#Censorship_...
[2] https://en.wikipedia.org/wiki/War_crimes_in_the_Gaza_war
Your point is good but the example is not great. The damage from those Japanese bombs was minimal; one of them killed a few people in Oregon. Even if the Japanese had had reports on every incident they would likely have decided it was not worth it.