At least 18 people have been killed in an attack on a large number of people in Maine.