Police are treating the incident as a "terrorist attack".