BEIJING — A farmer described by the authorities as mentally ill rampaged through the streets of a city in central China with an ax on Wednesday morning, killing six people, two of them children, according to the state media.