NEW YORK ( CNN ) -- The Queens campus of St. John 's University was locked down Wednesday after police apprehended a man with a rifle on campus , the New York City school confirmed in a written statement .