This is a perfectly reasonable smoke test for civil liberties and there's no shame, crime, or dishonor in running it.
For those wondering more about this type of action, I suggest a study of the works of Ben Masel of Madison, Wisconsin, who passed away a few years ago. He was arguably a master.
It's highly unlikely, since he had already studied Arabic at university and studied in Jordan. He clearly has a genuine interest in the language, including wanting to learn to read newspapers (which unfortunately feature words like "terrorists" and "kidnapping" in addition to the more mundane cards in his possession).
What happened to him is clearly not acceptable, but the story is not "Learning Arabic got me arrested" but "handing a list of words including 'bomb' and 'terrorist' to a security screener got me arrested".
I'm not sure the Arabic is relevant - I suspect the NSA screener could not read the Arabic and could only read the English portion of the flashcards, and that he would have had similar results if the cards were in English and French.
I'm sure you'll find many other examples. They mostly don't get arrested, but they certainly suffer unjustifiable abuse. And keep in mind that the TSA can't arrest people, only hand them over to the local police.
It's my presumption they don't have a "TSA," at least by that name, in the UK.