Terror attacks in the Mideast and North Africa fell by almost 40% in 2017