Officials said they are investigating the shooting in Trappes, outside Paris, as a potential terrorist act and called it a "miracle" that there weren't more casualties.