Mahamed Yusuf was at Karmel Mall for Officer Noor’s welcome, and said that local Somalis had been heartened to have one of their own on the police force.

“We have a guy between the police and the community,” Mr. Yusuf said. Since the shooting, he said, Somalis have been “burning inside” and grasping for answers.

“He was looking so nice and humble, and he loved his job,” Mr. Yusuf, 63, said. “Everybody in the community is shocked and sad.”

As the Somali immigrant population in Minneapolis has grown, members of the community have sometimes expressed frustration with law enforcement. In 2002, after Minneapolis officers fatally shot a Somali man carrying a machete, critics accused the officers of using excessive force, claiming the man was mentally ill and did not understand English.

More recently, some Somalis here have criticized the tactics used in federal prosecutions of young men accused of trying to join overseas terrorist organizations. The strain of police shootings of black people — with a few prominent cases in the Twin Cities area — has also left some Somalis wary of law enforcement.

The Minneapolis police have worked in recent years to add Somali officers to the force and have reached out to the immigrant community. After last year’s presidential election, amid heightened concern about deportations, a Somali-speaking officer recorded a YouTube video assuring residents that the local police did not enforce immigration law.

Ms. Hodges also said that Officer Noor “won’t be treated differently than any other officer” and that the shooting had happened “under circumstances we don’t yet comprehend.”