Community detection on block models with geometric kernels