Nearly 8,000 detained amid unrest in Kazakhstan