A potassium vapor magnetometer optically pumped by a diode laser