Which US military intelligence offices were those? I don't recall anything of that sort from the 9/11 Commission report. There are also no active US military personnel listed amongst the fatalities from the WTC towers.
And no, the same logic doesn't apply. Having a handful of military personnel inside civilian locations is not contrary to the rules of law; what would be is to locate bases, shooting positions, weapons storage, etc within primarily civilian facilities. That's something the US military, as with most militaries, doesn't do.
Further, a tiny office with a handful of intelligence personnel would not make the entire facility a legitimate target.
This distinction would be laughed at by a terrorist as pure sophistry.
Where the distinction matters is both in terms of international law and the comment I replied to calling it a 'US military intelligence office'.
There’s nothing illegal in terms of international law for the CIA to have had a small office in the WTC towers.
The question is whether the phrase ‘US military’ includes the CIA and, secondarily, whether a small CIA office in the WTC towers would’ve made them a legitimate target in international law.
For both of those the answer is ‘no’.
First, the CIA is a civilian intelligence agency and so not considered part of the military. It doesn’t fall under the military hierarchy, and it does not report to either the Joint Chiefs or the Secretary of Defence. In the same way the Russian SVR and FSB are not military institutions either, for what it’s worth.
Second, for the WTC towers to have been a legitimate target they would’ve had to have met the standards of “nature, location, purpose or use make an effective contribution to military action and whose total or partial destruction, capture or neutralization, in the circumstances ruling at the time, offers a definite military advantage”, be justified by immediate military necessity, and be proportional in terms of the harm caused to civilians or civilian property. None of that was true in the case of the WTC towers, even with a small CIA office inside one of them.
I genuinely don’t understand why this is a controversial point.