I'm fairly sure that's happened to an American citizen caught in Afghanistan, fighting against the U.S.
He didn't attack us on our soil, so the conditions might be different, but he agreed to have his citizenship revoked in order to avoid being tried/punished, whatever...
A quick lazy look...