The cited article is a little ambiguous. The author refers to a "DHS officer". At no point is "TSA" mentioned.
The DHS includes both the TSA and US Customs, so it may very well have been a customs agent doing the searching.
The photo in the article is of a US Customs document and refers to "CBP officers" (Customs & Border Protection).