Earthquake hits offshore from Niagara County