In an eight-day span, an Air Force sergeant fatally shot a federal security officer and wounded his partner outside a U.S. courthouse and ambushed and killed a California sheriff’s deputy and injured four other officers, federal authorities said Tuesday.