A Barth-Lefschetz theorem for submanifolds of a product of projective spaces