Detection of magnetic field in the B2 star $\rho$ Oph A with ESO FORS2