They must have had grounds for arrest though right (whether totally legitimate or not at all). I mean if he was "acting suspiciously", just in the opinion of a secret service agent or an officer, that's all there is to it.
There's certainly a lot of potential situations where you could get arrested for that very reason, and not feel it's fair (rightly so perhaps), but from a legal perspective you'd have no case.