BOSTON — An attack on a flight attendant last week — the latest in a long list of unruly passenger incidents — shows the continued need for a secondary cockpit barrier on all commercial aircraft, according to a former federal special agent.

The chaotic incident on the United flight from Los Angeles to Boston Logan International Airport also sent terrorists a clear message that “Americans are not going to lie down and take it,” said retired Federal Aviation Administration special agent Brian Sullivan.