A mechanical failure caused the pump station in Topeka to dump 2.4 million gallons of untreated wastewater into the Kansas River on Tuesday.