It doesn't say "US government", it says "the hackers in question were working for a US ally", which makes it even more complex.
It was likely if it was counterterrorism this is about a Middle-Eastern ally, such Israel or Saudi Arabia?
Neither of these are always US allies, only sometimes.