Monodromy of a family of hypersurfaces containing a given subvariety