An Edgewater man has been arrested on accusations he spouted off threats on Twitter against the U.S. Immigration and Customs Enforcement (ICE), including "We need to kill all ICE agents,” authorities said.

On Friday morning, Carlos Alejandro Tariche, 22, was arrested and charged with one count of interstate communications containing threats to injure, U.S. Attorney Craig Carpenito said in a statement.

Using his Twitter account, Tariche made several glancing and direct threats against ICE agents, referencing Elliot Rodgers, the man who stabbed and shot six people to death in 2014 in California before killing himself.

“Why can’t mass shootings occur at @ICEgov buildings them mfs need to get smoked," tweeted Tariche on Dec. 11, according to the complaint against him.

Tariche also posted, “You must’ve heard I paint houses,” a euphemism that refers to killing people, itself a reference from the Martin Scorsese film “The Irishman,” the complaint said.

Investigators physically located Tariche by examining his tweets and other social media accounts and finding out where he was logging on. He was arrested by agents from Homeland Security Investigations, the investigative arm of ICE.

Tariche faces a maximum sentence of five years in prison. He was scheduled to appear in Newark federal court Friday afternoon, the statement said.

Rodrigo Torrejon may be reached at rtorrejon@njadvancemedia.com. Follow him on Twitter @rodrigotorrejon.

Find NJ.com on Facebook. Get the latest updates right in your inbox. Subscribe to NJ.com’s newsletters.