Complex sentence: Small hooks were fitted, just forward of the inboard flaps: when the tank was released these hooks caught the trailing edge of the tank, swinging it clear of the fuselage.
Split into simpler sentences: Small hooks were fitted just forward of the inboard flaps. When the tank was released, these hooks caught the trailing edge of the tank, swinging it clear of the fuselage.