Foreign nationals w/ legal immigration status can enlist in the US military ( if otherwise admin qualified), but officers must be US citizens.
You sure about the Officer part? The USAF Captain that delivered my daughter was a Korean national.