Man charged in double homicide confesses