A deadly earthquake in western Colombia has killed at least 300 people.