BOSTON (WPRI) — The Massachusetts man accused of tampering with an emergency door on a cross-country flight before attempting to stab an attendant over the weekend has been ordered to undergo a mental health evaluation.

Francisco Severo Torres, 32, of Leominster, was arrested Sunday night at Boston Logan International Airport after he reportedly disarmed an emergency door on the plane and attacked a flight attendant with a broken metal spoon.

Torres was brought to the Wyatt Detention Facility in Central Falls on Monday, where prosecutors claim he repeatedly punched a correctional officer in the face unprovoked.

The state requested Torres be evaluated for competency to stand trial, since there is reason to believe he suffers from a mental illness.

Elianna Nuzum, an assistant district attorney for Suffolk County, said Torres has made numerous “fantastical and nonsensical statements” while in custody, including that, “He does not believe he would die if he was stabbed in the heart or shot in the chest … he believes that he would come back to life.”

Nuzum also made mention of an incident that happened at a Leominster barbershop last month, when Torres allegedly walked inside and asked to be shot with an AR-15.

Torres’ attorney, Joshua Hanye, objected to the competency evaluation, which he deemed “unnecessary.”

The judge sided with prosecutors and ordered Torres to undergo a mental health evaluation, since he might not understand the consequences of the charges he faces.

WATCH: Man tries to stab flight attendant, open door of plane »

Torres shouted, “My name is still Balthazar!” as he was leaving the courtroom, which is a name he also referred to himself as on the United Airlines flight.

In a video taken by another passenger on the plane, Torres could be heard rambling incoherently and threatening to kill every man on the plane.

“Where are they diverting us?” Torres shouted. “Wherever it is, it’s going to be a bloodbath.”

Torres has been charged with interference and attempted interference with flight crew members and attendants using a dangerous weapon. If convicted, he could be sentenced to life in prison.