The quake was felt in the Dominican Republic , which shares a border with Haiti on the island of Hispaniola , and some panicked residents in the capital of Santo Domingo fled from their shaking homes .