Analog of the spin-orbit induced anomalous Hall effect with quantized radiation