NEW YORK -- An American citizen from California who was radicalized by online propaganda traveled overseas to try to join a branch of the Islamic State of Iraq and Syria (ISIS) in Libya, U.S. prosecutors said Tuesday. Bernard Augustine was jailed without bail on Tuesday during an initial court appearance in federal court in Brooklyn.

A few days before he left in 2016, Augustine texted an unidentified relative, "If I ever get lucky enough to live in the khilafah, I'll burn my own passport, lol," according to a criminal complaint. He made it as far as Tunisia but was detained by authorities there before he could carry out his plan, the complaint said.

Augustine, 21, is from the town of Keyes in California's Central Valley. His lawyer, Samuel Jacobson, declined comment.

Get Breaking News Delivered to Your Inbox

An examination of Augustine's laptop turned up evidence that he had been viewing ISIS material on the Internet, including a video showing the beheadings of Ethiopian Christians who were kidnapped in Libya, the court papers said. He also searched for "jihadology" and "how to safely join isis," it said.

In addition, Augustine viewed sermons by fiery American-born cleric Anwar al-Awlaki, a leader of al Qaeda in Yemen who was killed in 2011, the papers said. The online videos of Al-Awlaki have been cited in several U.S. cases as being a dangerous influence on self-radicalized terrorists.

Records show Augustine took a Turkish Airlines flight from San Francisco to Tunisia via Istanbul, Turkey, using a one-way ticket. Once there he emailed the same relative in California, telling that person, "I'm not mad or mentally ill, I really truly am on a path to fight for justice," the papers said.