Usually the only time I show a passport is checking in and then at whatever immigration desk. It sounds odd that this guy was demanding that you pull out a passport, when any photo ID should be sufficient to clear security.
If he did shove you and call you an idiot, especially in front of other passengers, he needs to be working in a different career field, without human contact. Maybe the zoo is looking for elephant proctologists.