A device found with the man who tried to assassinate Donald Trump was a remote fireworks detonator, according to US law enforcement sources.