Ultrasensitive Magnetometer using a Single Atom