Direct visualization reveals dynamics of a transient intermediate during protein assembly