A tense, hourslong hostage standoff ended in the arrest of the suspect and, separately, the fatal shooting by police of Michael Funk.