A Noether-Lefschetz theorem for varieties of r-planes in complete intersections