Fetching details from the dictionary...

to struggle; to writhe; to wriggle; to squirm
to act frantically; to make desperate efforts
束縛から藻掻いて逃れようとした。
I struggled to escape from the constraints.
溺れそうになって必死に藻掻いて助かった。
I struggled desperately and was saved when I was about to drown.
問題を解決しようと藻掻いている姿が印象的だ。
I keep moving forward while struggling with difficulties.