Ultrafast generation of magnetic fields in a Schottky diode