The suspected gunman in a library shooting at Florida State University was shot and killed by officers on campus, according to police.