As entirely explicable as his actions might have been, this guy did an awful lot more to inadvertently provoke suspicion than the several people per day detained for questioning for being in a particular area at a particular time, and possibly even the same colour as the perpetrator. A few of them undoubtedly suffer the inconvenience of missed flights and public embarrassment too, and/or encounter more objectionable behaviour from law enforcement than a overuse of handcuffs and amateurish-sounding line of questioning.
I mean, I am not kidding myself, the "threat of terrorism" has been used to justify far worse abuses, up to and including torture and extra-judicial prisons. But expected or not, this should be morally and legally indefensible.
Also, at a personal level, it makes me think that, should I decide to travel any time soon, my reference papers for work in computer systems' security, the book I am reading on the NSA/Snowden material and my textbook on introductory Chinese should all stay back home. Because "that sure looks like some suspicious literature right there, doesn't it?"