Who was on a student visa? As far as I know, those on student visas are not allowed to purchase fire arms.
Yes, they can. They are ‘non immigrant aliens’ and have to produce a hunting license to purchase ‘sporting’ firearms (whatever those are.)