New York mayor: Truck attack an act of terror