He became so terrified that he fled desperately.

Literal

Extremely scared became [then-て] he [topic-は] desperately fled.

非常に ('extremely') modifies 怖くなって ('became scared'). 必死に means 'desperately, for dear life.' The te-form links the cause (becoming scared) to the result (fleeing).