Five American citizens who had been detained in Iran were released on Monday and are on their way back to the United States. They initially stopped in Doha, Qatar, as part of their journey home, according to information provided by a US official and a source familiar with the situation.