An American citizen from California was arrested overseas after apparently providing material support to terrorists, a law enforcement official told ABC News.

According to ABC News, Bernard Raymond Augustine of Stanislaus County was arrested while attempted to travel to Libya in an attempt to join the terrorist organization ISIS.

The 20-year-old Augustine is from Keyes, a small community just outside of Modesto.

Augustine was previously arrested in 2016 in Tunisia, a trip he told authorities was for vacation, according to court records. Augustine took a one-way flight from San Francisco to Tunis, Tunisia, a "common location to which foreign fighter travel" when they want to join ISIS in Libya.

A search of his computer revealed a song rejoicing ISIS and messages that he allegedly sent praising the terrorist group, according to ABC News.

U.S. prosecutors believe Augustine was U.S. prosecutors. 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.

An examination of Augustine's laptop turned up evidence that he had been viewing Islamic State group 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-Qaida 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.