Tidal disruption by a massive black hole and collisions in galactic nuclei