In 2011, a string of powerful earthquakes struck near the town of Prague, Okla., part of a surge in seismic activity in the state.

Geologists eventually linked the quakes to increased oil and natural-gas production in the area—specifically, to the practice of injecting wastewater from hydraulic fracturing, or fracking, into wells deep underground.

Sandra...