The Pukekohe District Court was plunged into lockdown today after a gun was brandished outside the courthouse.
The gun was presented from a car, which was spotted by a police helicopter, leading to the arrest of two people by armed officers.
The saga began in the town south of Auckland about 11am, when police began receiving calls of two people presenting a firearm from a car.
It later emerged the firearm was a BB gun.
A police spokesman said they were aiming the weapon at two people outside the court.