A court in southern China has put a man to death after he injured 12 children in a knife attack at a kindergarten, the state broadcaster said on Monday.