A U.S. court has reportedly ordered that an Egyptian student living in the United States be deported after he was caught threatening to kill presidential candidate Donald Trump on Facebook, according to reports.

Emad El-Din Ali Mohamed Nasr El Sayed, a 23-year-old student, reportedly had his U.S. visa revoked as a result of the threats.

"I am willing to kill Donald Trump and serve a life sentence," El Sayed wrote on Facebook, according to interviews with his lawyer conducted by Egyptian Streets. "[T]he whole world would thank me for doing that."

El Sayed was arrested in mid-February but authorities dropped the charges after a decision was made to revoke his visa. A California immigration court determined on Tuesday that he is now in the United States illegally and must be deported back to Egypt.

El Sayed's lawyer expressed opposition to the ruling.

"This is an extraordinary step taken by the U.S. government to pressure a school owner to terminate the attendance of someone at a school," Hani S. Bushra was quoted as telling Egyptian Streets. "Emad never missed a single academic requirement while he was enrolled in the school."

Another hearing on the matter will be held on March 4.