Observation of Dirac monopoles in a synthetic magnetic field