Shortly after 8:30 a.m., Roseville auto-theft detectives were investigating a case on Billy Mitchell Boulevard north of PFE Road when a person not related to that case confronted the undercover officers, Gunther said.

The suspect brandished a weapon and then got in his car and drove off. Police pursued the suspect for one or two minutes before the suspect’s car may have stalled and he pulled into the parking lot of Dry Creek Elementary School on PFE Road.

“At around 8:30 a.m., before school starts, we went into lockdown at the school and at the district office, which is located directly behind the school,” said Dry Creek Joint Elementary School District Superintendent Mark Geyer.

Parents driving their children to school were blocked off from the campus, and students walking to school were rounded up by district staff and escorted to a large conference room in the district office, Geyer said. The school ended lockdown around 8:50 a.m.

Police took Costa and his passenger into custody without incident, and later recovered a gun in the area, Gunther said.

Sena Christian can be reached at senac@goldcountrymedia.com. Follow her on Twitter at SenaC_RsvPT.