Strong quake hits Japan; tsunami warning canceled