Lawmaker Leaving Iraq Is Detained, Then Freed