Answer:
Please refer to the figure.
Explanation:
The magnitude of the magnetic field can be found by Biot-Savart Law. We should divide the loop into four components. Each component has a similar solution but their directions are quite different.
The directions can be found by right-hand rule. Point your index finger into the direction of current, point your middle finger towards the target point (0,0,a). Your thumb will show you the direction of magnetic field.