Somethings to consider...
1.) You were carrying a pen, that was made to "simulate" a knife that would be a restricted item. Many a plane has been hijacked with bombs that are fake, or weapons that are not real. Now, I know, any idiot should know the Baliyo is not a knife. I would hope, but the fact that the pen is intended to simulate a butterfly knife, is enough to keep it out of carry on luggage for me.
2.) I have grown to "hate" the whole tactical movement. One of the cardinal rules of improvised weapons, is that you use common items that will be available in non-permissive environments (in terms of weapons).
Case in point, pens. I have been training with pens for years, as a weapon. We used BIC pens. After 9-11, people started rushing to market tactical improvised weapons. Namely flashlights and pens. They market them as weapons, and then they weapon-ize them with pointy ends and such. Do you think the government is staffed with idiots? Do you think no one is looking? Then they alert agents to the weapons, than then even the non-weaponized version become prohibited. Frankly I travel with a flashlight, not to knock a terrorist silly, but to use when the plane is full of smoke and I need to find an exit!!!
Then we have endless YouTube videos of self-proclaimed experts (actually just gear guys) telling how the "AMCE Marauder Tactical Pen" is so impressive, point out all the killer features of the pen... Think no one is watching?
So when you go to get on the plane, guess what the agent is going to think about your rather harmless Bayilo? Frankly it is as far form a practical weapon as a marshmallow. However the stage has been set...
I am not surprised it was taken from you, and frankly we only have ourselves to blame.