It depends on your citizenship.
Citizens of most Western and Asian countries are not required to have a visa. Some are asked for onward ticket, but I think if you tell them that you are catching a military flight you will be all right. But then again, depends on which military.
