Earthquake magnitude 6.4 hits Japan