A Ph.D. student at the University of North Carolina at Chapel Hill was arrested and charged with murder after an hourslong lockdown Monday.