They should be allowed to do that. And any publication willing to try to sell ad space flanking such drivel should be allowed to as well.
Freedom of speech is specifically and ultimately for the speech that you don't like. I find the ideas behind your hypothetical article abhorrent, but I absolutely and unwaveringly think people should be able to say those things. My main motivations for this stance are two-fold:
1. Preventing speech we don't like invites a slippery slope. If today we say you can't write articles excoriating Muslims, what's to stop us from barring editorials espousing atheism tomorrow? Or any religious stance but the current, socially dominant one the day after that? Better to allow distasteful discourse today than to risk dissenting discourse tomorrow.
2. I find it convenient when noxious assholes out themselves as such. It makes my life so much easier when people who think these kinds of things fly their flag loudly and proudly, so I know whom to avoid.
how would you legally distinguish between that critical of the TSA and that critical of some other class of people without privileging one set of political opinions over another?
Easy: you don't. Speech is speech is speech. Allow it all, or risk it all.
Now, a critical caveat here is that we're talking about speech, and not incitement. Expressing an opinion, however vile, should be sacrosanct. Encouraging people who might share your opinion to visit violence (and I don't just mean physical violence) upon the targets of your noisome nonsense is something entirely other. And I think that's a reasonably easy distinction to draw, as well, without privileging some opinions over others.