Stupidity' led to Texas shooting, sheriff says