Este sitio web fue traducido automáticamente. Para obtener más información, por favor haz clic aquí.

An 18-year-old man suspected of having planned an extremist attack in Frankfurt has been arrested near Germany's border with Austria as he attempted to leave the country for Iraq and join the Islamic State group, German investigators said Thursday.

The man, a German citizen with Moroccan roots who grew up in Germany, was arrested on Wednesday at a highway rest area near Passau, Frankfurt prosecutors and Hesse state criminal police said in a statement.

CONNECTICUT MAN PLEADS GUILTY TO TRYING TO JOIN ISIS: 'I NEED ISLAMIC LAW'

The arrest stemmed from an investigation that started last summer. The man, whose name wasn't released, is accused of having planned a shooting attack in Frankfurt, of having researched how to build explosive devices online, and of procuring a stabbing weapon that he kept in his parents' garage.

Germany News

German police have arrested an ISIS-linked suspect in a planned Frankfurt terror plot. (Fox News)

German authorities were alerted by a foreign intelligence service, which Thursday's statement didn't identify. When the suspect's home was searched in August, investigators found depictions of the Islamic State group's flag and ideologically loaded pictures of fighting and executions, but couldn't immediately substantiate suspicions that he was planning an attack.

BRITISH POLICE ARREST MAN ON TERRORISM CHARGES AFTER URANIUM IS FOUND IN PACKAGE AT LONDON AIRPORT

Further investigations suggested that he had put off his plans for an attack in Frankfurt for fear of being discovered and couldn't find enough money to get a firearm, authorities said. Instead, he allegedly planned to leave Germany on Wednesday to travel overland to Iraq, where he hoped to join IS, "'slaughter' infidels" and fight state institutions.

CLICK HERE TO GET THE FOX NEWS APP

The suspect was arrested before he could leave the country and his home was searched again.