I could care less about the profiling. Once the agent had been singled out he should have been properly investigated to determine whether he was who he said he was or whether he was an armed terrorist about to board a flight. If he was an agent then he should have allowed to board, perhaps surrending his weapon. If he was an armed terrorist, then he should have been apprehended before he could harm any passengers or crew.
BTW, profiling doesnt mean looking to see who looks like an arab and then automatically throwing them off the flight. Profiling is using known characteritics of terrorists or criminals to better screen large numbers of people when looking for the bad buys. You dont spend your time investigating 80 year old white women in wheelchairs when you have six 22 year old arab men in the same line.
Was it THEIR fault that the guy couldn't do the paperwork correctly? The airlines DO have a schedule, you know.