Man who beat adoptive father to death pleads guilty