A South Carolina teenager pleaded guilty Wednesday to allegations that he tried to fight for the Islamic State group.