Charmoniumlike tetraquarks in a chiral quark model