What had been a safe G.O.P. seat was looking more attainable for Democrats after Representative Tony Gonzales bowed out in favor of a hard-right candidate.
Politicians quickly cited the attack in their campaign messaging. Some Republicans called for stopping immigration, while Democrats called for gun control.