At least 10 people were killed and more than 35 were injured in an attack authorities said they were investigating as terrorism.