The United States and Iran are considering a deal in which each will release four of the other's citizens.