Roseland-area schools were briefly put on lockdown Friday morning after a parent dropping off a student at Sheppard Accelerated Elementary School thought she saw a kid on a bike with a shotgun, school and public safety personnel said.

It turned out to be a BB gun, Sonoma County Sheriff's Lt. Tim Duke said.

But in the meantime, school officials called a "code red" for Sheppard school, immediately summoning everyone inside and locking down the West Avenue campus, Roseland Public Schools Superintendent Gail Ahlas said.

Nearby district schools were similarly locked down out of an abundance of caution, Ahlas said.

Deputies who swarmed the area located the reportedly armed child a few minutes later. Though he no longer was in possession of the BB gun, he was fully cooperative and showed them where it had been stowed, Duke said. His age was not available, Duke said.

The deputies advised him to be more careful about where he takes his BB gun and sent him on his way, Duke said.

All in all, the incident lasted about 20 minutes, Ahlas said.

"I just have to give a huge shoutout to our staff at all the schools," Ahlas said. "They know what to do, and it's like clockwork. They were really, really good."