BOSTON (CBS) – A passenger on a JetBlue flight from Boston to San Juan, Puerto Rico was arrested after he allegedly choked a flight attendant and tried to enter the cockpit.

Flight 261 was about an hour out from landing in San Juan after taking off from Logan Airport Wednesday night when the attack happened.

READ MORE: Trump calls FBI search of Mar-a-Lago estate 'prosecutorial misconduct'

Investigators say Khalil El Dahr tried to make a cell phone call. When the call did not go through, he became agitated. He eventually rushed towards the cockpit yelling that he wanted to be shot in Spanish.

READ MORE: Olivia Newton-John, known for her role in 'Grease' and hit song 'Physical,' dies at 73

Just as that happened, a flight crew officer opened the cockpit door. El Dahr then allegedly choked a flight attendant with his own tie and attempted to enter the cockpit.

It took six or seven crew members to restrain El Dahr using neck ties, flex cuffs and four seat belt extensions.

MORE NEWS: Father and son sentenced to life in prison for federal hate crimes in Ahmaud Arbery's killing

El Dahr was arrested in San Juan and is facing federal charges.