Former girlfriend admits murder