Man admits killing girlfriend, dies in shootout with 9 cops