Editors note: This story has been updated to reflect the student tried to buy a rifle, not an assault rifle. RPI officials erroneously identified the weapon as "an assault rifle" in a Monday release. Assault rifles are illegal in New York. Read an updated story.

TROY — A Rensselaer Polytechnic Institute student was removed from campus and taken into custody after attempting to purchase a rifle, a university spokesman said on Monday.