A South Dakota man accused of stabbing a man to death using a bayonet has pleaded guilty to second-degree manslaughter.