Residents across Somalia were rattled by a magnitude 6.0 earthquake on Thursday.