A child brought the "potentially unexploded ordnance" into a junior school in Hampshire, say police.