Man dies while in police custody