A man died Friday while he was being detained by police at a homeless shelter in Concord, authorities said.

The man’s name and the cause of death were not immediately provided by the Concord Police Department. But the agency’s Facebook page said the incident occurred around 4 p.m. after officers responded to 911 calls about a disturbance at the Concord Homeless Shelter at 2047 Arnold Industrial Way.

Shelter staff told authorities that a man was “acting erratically, yelling and being violent,” police reported.

Officers detained the man but said he continued to act erratically and show signs of “medical distress,” according to police. Emergency personnel were called to the scene when the man became unresponsive. They later declared the man dead, according to police.

The man was not identified pending notification of next of kin, and the Contra Costa Health Services agency, which runs the shelter, would not say whether the man was a resident of the facility, citing privacy laws.

The Concord Homeless Shelter is an emergency shelter program for adults and provides services to “help get them out of homelessness,” said Victoria Balladeres, a spokeswoman for Contra Costa Health Services.