Student sentenced for gun violation