A 3-foot-long iguana has been captured on the grounds of Makaha Elementary School on Oahu.

State officials say the school was under lockdown while police, school personnel and neighbors captured the lizard with a fishing net.

Iguanas are found from central Mexico through South America, and can reach up to 6 feet in length.

The Department of Agriculture says it's illegal to possess iguanas in Hawaii, but the lizard is known to be established in some areas of Oahu.

Iguanas are typically vegetarians, but they are known to feed on bird eggs.

• Click here to visit FOXNews.com's Natural Science Center.