Those people generally have some form of immunity from lawsuits over things they do that are part of their government office.
Maybe-but it’s certainly malfeasance if known criminals kill people that it’s the sworn duty for officials to protect.