The tremor hit around 0:46 am (1646 GMT Tuesday), shaking buildings and waking people from their sleep.