The FBI is investigating suspicious mailings, some containing an unknown substance, sent to election offices across the US weeks before the midterms.