Officers were called to the Whittier School in the 3000 block of North 27th Street around 2:30 p.m. Monday after school officials reported that a 5th grade student might have a gun in his bag.
Police arrived, searched his bag, and found the BB gun.
He is being detained by police.
The student who was shot in the leg didn't require medical treatment.