On the compactness of operators of Hankel type