Obey and don't make eye contact. But most importantly, OBEY.
This crap makes me furious and I only deal with TSA maybe once per year. All you can do is ask for a supervisor and if you get nowhere with that, then file a formal complaint. You can also tell them that you want the item back (i.e. don't be such a turd by throwing my property out) and you're going to check it in your checked luggage.