Police: Man admits to killing ex-girlfriend