An earthquake sent residents running from their homes and shook buildings across Venezuela’s densely populated coastal region, including the capital Caracas, before dawn on Monday.