The restaurant “was a place to go to feel more at home,” said Mr. Ferri, adding that it was a regular hangout for foreigners living and working in Dhaka. “Sometimes we went together, sometimes we met up there by chance,” he said.

Another Italian victim, Nadia Benedetti, owned a textile business and had worked in Bangladesh for 12 years, her landlord, Tarique Hyder, said in a Facebook post. Mr. Hyder called her contributions to Bangladesh “remarkable.”

Another victim, Simona Monti, 33, was thinking of moving back to Italy because she had just discovered that she was pregnant. She loved her hometown, Magliano Sabina, just north of Rome, but she had taken a job in Bangladesh’s textile industry, said Alfredo Graziani, the town’s mayor.

Claudia D’Antona had lived in India and Bangladesh for 18 years, said her sister Patrizia. Ms. D’Antona and her husband, Giovanni Boschetti, were not afraid of living in Dhaka, but they were careful, the sister said. She said that on Friday night the couple “had dined at that restaurant because they felt safe there, because of where it was, close to the embassy where they were married.” Mr. Boschetti survived because he had been called away for a phone call and was outside when the gunmen attacked.

Seven Japanese citizens who were in Dhaka to work on a project sponsored by the Japan International Cooperation Agency were also killed in the attack. Their names were not immediately released. A 19-year-old Indian student named Tarishi Jain was one of the first victims to be identified.