The gate agent maintains that this is a serious breach of security,
This clearly indicates two things about the gate agent.
1) He has completely misunderstood and misapplied the most elementary principles of his security training. That is not in the least professional.
2) He is a miserable jobsworth. That is just pathetic.