An earthquake of magnitude 7.3 has struck west Haiti, 150 km from the capital, leaving homes destroyed.