Quantum rule for detection probability from Brownian motion in the space of classical fields