Children and teachers at Paerata School were kept in their classrooms as police searched for the gunman.
School principal Luke Thompson said police told them of the need for a lockdown around 1.15pm, but gave no specific reason.
He said police called again just before 2pm to say the school could come out of lockdown, but children and teachers should stay in their classroom until home time.