A flash flood and mudslide that struck a southwest Chinese city has killed four people and left 23 others missing.