Vietnam, America's ally, was attacked. That's kind of the point of the war.
America helps its allies, especially when its allies are being attacked by proxy armies of international Communism.
So was Hungary, at a time when we had an effective nuclear delivery system while Khrushchev didn't. We chose not to intervene on that occasion even though the Soviets were explicitly breaking a treaty by invading.