After a great earthquake in 989 destroyed the dome of Hagia Sophia , the Byzantine officials sent Trdat to Byzantium to organize repairs . After a great earthquake in 989 ruined the dome of Hagia Sophia , the Byzantine officials summoned Trdat to Byzantium to organize repairs .