It seems like from the story that the TSA officer chose to look through the OPs documents 'because he could'. No one is going to come through his checkpoint with ID and refuse to show it. Someone needs their wings clipped. "How do you like that, Mr. funny-man...I AM looking at your ID and passport and whatever else I want to."
I'd have ignored the questions, but then again, I wasn't in your shoes.