A powerful earthquake rocked Myanmar and neighboring Thailand on Friday, destroying buildings, a bridge and a dam.