The two men , who relatives said were in Iraq working on a historical documentary , were arrested after a search of a taxi they had taken from a Baghdad hotel turned up dozens of washing-machine timers of a type sometimes used by Iraqi insurgents to make improvised explosive devices , the officials said .