The police said the suspected attacker was a 29-year-old French national who had yelled "Allahu Akbar" (God is greatest) when arrested.