Man pleads guilty to second-degree murder