https://www.google.com/amp/s/www.wklaw.com/10-ways-murder-becomes-a-federal-crime/amp/
2. Murder of a Federal Judge or Law Enforcement Official (18 U.S.C. Section 1114)
Similar to the above, it is also a federal crime to kill a judge appointed to the federal courts or to murder a federal law enforcement official, such as an agent of the FBI or DEA.