The small earthquake struck about 20 miles north of Half Moon Bay.