There is nothing legal about attacking a United States Army garrison.
That depends on if it’s located in the territory of a foreign country that has asked the fort be vacated.