张皇失措

to be too flustered to know what to do