A blue-ringed octopus was accidentally taken home by a girl in a collection of sea shells.