Four illegal immigrants from Guatemala accused in a Framingham kidnapping and rape case are set to be turned over to immigration officials, even after charges against them were dropped yesterday.

“U.S. Immigration and Customs Enforcement intends to assume custody of all four individuals,” said ICE spokesman Daniel Modricker.

At a hearing yesterday in Framingham District Court, Assistant District Attorney Joe Gentile said the alleged victims — a man and a woman — said they would invoke their Fifth Amendment right against self-incrimination if they were called to testify. Without that testimony, Gentile said, “the commonwealth has insufficient evidence upon which to proceed.”

The woman’s boyfriend, reached at his home after the hearing, declined to comment.

Asked whether prosecutors were considering charging the couple with filing a false report, Meghan Kelly, a spokeswoman for Middlesex District Attorney Marian Ryan, said: “We are looking at all aspects of this matter.”

Elmer Diaz, 19; Ariel Diaz, 24; Adan Diaz, 32; and Marlon Josue Jarquin-Felipe, 27 — all from Guatemala — had been charged in the case. Jarquin-Felipe had been deported in April 2014, ICE said, and Ariel Diaz had been deported a month later after convictions for drunken driving and disorderly conduct.

The couple had told police they were out walking and enjoying an unseasonably warm evening on March 13 when they were approached by a man carrying beer. The man appeared friendly and offered them a drink, they said, then three more men emerged.

Two of them grabbed her by the hood of her sweatshirt, dragging her into a nearby Hollis Street apartment, while the biggest of the group held her boyfriend back.

Inside the apartment, the woman told police, she was held down, groped and raped. Her boyfriend told police he managed to force his way into the apartment, where one of the men head-butted him several times, pulled out a large chef’s knife and tried to slash him, saying, “I am going to carve you up and rape your girl,” her boyfriend told police.