The only thing I can think of that the government can do is to clamp down hard on violence, including speech which advocates for violence (e.g. glorifying Luigi Mangione, calling everyone a Nazi/fascist, etc.). Freedom of speech ends where it actually turns into violence.
It's unlikely they would have killed him anonymously, from 200 yards away, and be still at large a day later.