The terror attack in Nice on Thursday has underlined the continued problems facing governments and officials despite a major increase in security.