They were accused of 'spying' for a foreign government.
a 'spy' camera/plane [=a camera/plane used for spying]
a 'spy' novel/thriller [=a novel/thriller about spies]
(..) ''MiddIe House Road''? No. No, no. It's a big hit. I wrote a character just Iike you once. He was a spy. I'm not a spy. That's what the character said. MlA/ l'll see you tonight, then. (..)2001 The Princess Diaries