scientists don't know, it could have been loss of food, they probably ate dead ones until nothing was there, or a disease got in plants an poisoned the plant eaters and a carnivore came by and ate...
The asteroid that thrust the dinosaurs into extinction is known as the "Chicxulub" asteroid (although this is one of the many competing ideas as to how the dinosaurs became extinct).