The New York Attorney General’s Office has opened an investigation into the death of a 30-year-old man who died suddenly in state police custody.