They were troubled (etarachthēsan). Much stronger than that. They were literally “terrified” as they saw Jesus walking on the sea.
An apparition (phantasma), or “ghost,” or “spectre” from phantazō and that from phainō. They cried out “from fear” (apo tou phobou) as any one would have done. “A little touch of sailor superstition” (Bruce).