All-Optical Quantum Sensor of the Magnetic Field Deflection