If a person is legally admitted into the US, it normally follows that this person will become a US citizen. If that's a fact, then there is no real reason not to allow them to serve in the military.
If terrorism is the issue here, I would point out that the DC sniper, and the Oklahoma bomber were both ex-military, and native-born.