The campus of Virginia Tech University is on lockdown after a gunman killed two people, including a police officer.