Verify: Did a student with a gun stop the UT stabbing attack?

Several websites have claimed the stabbing attack at the University of Texas at Austin was stopped by a student with a gun. But is it true?