Cody Cousins, a 24-year-old man convicted of shooting a classmate in a Purdue University building, has committed suicide in prison.