BERLIN (Reuters) - Germany said on Wednesday it would review the cases of nearly 550 asylum seekers who have been deemed a security risk, spurred by new questions about the handling of a Tunisian migrant who killed 12 people last month at a Berlin Christmas market.

Interior Minister Thomas de Maiziere told lawmakers the country’s Joint Terrorism Task Force would look carefully at each of the 547 people identified as a security risk to determine if they needed to be deported or taken into custody.

Burkhard Lischka, domestic policy spokesman for the Social Democrats in parliament, said authorities had lost track of three of those people, and he drew parallels to the case of the failed Tunisian asylum seeker, Anis Amri, who plowed a truck through the Berlin Christmas market.

The German government, in a reply to a parliamentary inquiry by the Left party, said Amri had been investigated for an attempted murder in March 2016, but gave no further details, according to a report in Die Welt newspaper.

Sahra Wagenknecht, who heads the Left party in parliament, told Die Welt that de Maiziere’s inability to answer key questions about the Amri case a month after the attack meant he was “clearly in the wrong job.” She called for creation of a special committee to investigate the case.

Amri had been identified as a threat last February, but investigators decided it was unlikely he would carry out an attack, according to German media reports.

“They are playing with fire, and every wrong calculation can be deadly,” Lischka said after a meeting of the internal affairs committee.

Amri, 24, plowed a truck through a Berlin Christmas market on Dec. 19. Islamic State claimed responsibility for the attack, calling Amri “a soldier” of the militant group.

De Maiziere and Justice Minister Heiko Maas, representing the two blocs in Chancellor Angela Merkel’s ruling coalition, agreed this month on tougher measures for asylum seekers whose documents are not in order or who are deemed a security threat.

De Maiziere, a Christian Democrat, on Wednesday cited heightened security threats and urged lawmakers to quickly approve the new measures, which would make it easier to take people into custody for deportation.

He said it was imperative to set up uniform guidelines for state authorities and the national government for dealing with dangerous migrants and said it was unacceptable that Islamist militants were moving around Germany freely.

Patrick Sensburg, a Christian Democratic lawmaker, told the Funke Mediengruppe newspaper chain that state authorities who had investigated Amri had not informed Germany’s chief prosecutor about those probes until after the attack.

“The justice minister could not determine why multiple investigations of Amri by the states for social benefits fraud, falsification of documents and drug trafficking were not cross-linked,” Sensburg told the newspaper.

Dietmar Bartsch, head of the Left party group in parliament, questioned why authorities had decided to stop observing Amri in September and questioned whether authorities had sought to use Amri as a potential source.