Ex-cop killed after firing at US courthouse in West Virginia