Whatever.
Please do not enter into any arguments, just walk away and go back to the crew room or once well out of earshot Ring you Airline's Operations or whoever and Let them sort it out. Once you put the onus onto the security personnel and the pressure applied from your Airline/Company, you will be surprised how quickly things get solved.
Don't get angry, just let someone else take the heat.