Twitter Inc. moved swiftly to remove posts from Islamic extremists glorifying a truck attack in Nice, France.