Man takes own life after killing girlfriend