Legality of using domestic law-enforcement personnel on a military operation overseas

With Posse Comitatus, the military can’t police things at home, but is there a reverse legal version of Posse Comitatus, whereby the U.S. government can’t use, say, NYPD SWAT personnel in a counterterrorism operation in the Middle East?

(As for why the government would do that, that would be fighting the hypothetical, but maybe these NYPD SWATsters have specific expertise for a particular mission that the SEALs don’t, etc.)

Large numbers of American police officers are reservists who are deployed in military operations overseas frequently. But they do that as part of Reserve and National Guard units, not under the command of their police departments.