A man accused of shooting a BB gun into a group of people on the Brigham Young University campus on Sunday has been arrested, authorities said.