Police said early indications pointed to a “terrorist attack inspired by ISIS”.