(CNN) -- Two students were in custody Tuesday in connection with a shooting outside a North Carolina high school in which another student was injured, police said.
The incident occurred Monday on the grounds of Cape Fear High School in Fayetteville. A high school student was shot in the neck. She was in stable condition at a hospital Monday afternoon, according to school spokeswoman Theresa Perry.
Ta'Von McLaurin, 18, and a 15-year-old boy were arrested at their homes Monday night, Cumberland County sheriff's spokeswoman Debbie Tanna said Tuesday. The juvenile's name was not released because of his age.
Authorities were led to the boys after they reviewed surveillance camera video that showed them walking in a hallway with a rifle, Tanna said. A .22-caliber rifle was recovered inside the school, she said.
Police are still attempting to determine a motive for the shooting, according to Tanna.
McLaurin was set to appear in court Tuesday afternoon, she said. There was no scheduled appearance for the juvenile.
The shooting occurred as the victim walked out of the school's cafeteria, authorities said Monday. Students were escorted out of the building by police.
-- CNN's Dave Alsup contributed to this report.