French President François Hollande said authorities would investigate whether the attacker “had a terrorist plot behind him,” but the Paris prosecutors’ office had already announced that its anti-terrorism section had taken over the investigation.