EAST FLATBUSH, Brooklyn (PIX11) — A worker died after he accidentally locked himself in the freezer of a Brooklyn bakery Thursday morning, police said.

Mahamadou Dansogo, 33, showed up to work at Beigel’s Bakery at 5700 Ave. D in East Flatbush at around 3 a.m. and went to clean the freezer before he accidentally locked himself in the unit, according to an NYPD spokesman.

Authorities found the body at around 10 a.m., police said.

Dansogo’s friends and family said he was working on a piece of equipment in the freezer when it somehow turned on, and he was caught in the machinery.

He’d been working at the production facility for about five months, friends and family said. Dansogo recently moved to Bed-Stuy in Brooklyn from Mali, in Western Africa.  

Dansogo worked the night shift and loved his job, friends said. He leaves behind five children.

The bakery owner said the store is working with police in the investigation and grief counselors will be available to staff and the man’s family.

“We are devastated by the loss of our employee in this accident,” the owner said in a statement to PIX11 News. “The family has been notified and we extended our deepest condolences to them.”

No criminality is suspected, police said. The investigation is ongoing.