From G1537 and G2476; to put (stand) out of wits, that is, astound, or (reflexively) become astounded, insane: - amaze, be (make) astonished, be beside self (selves), bewitch, wonder.
Meanings (from Abbott-Smith's lexicon)
1. causal in present, imperfect, future, first aorist, to put out of its place; figuratively, ἐ. τινά φρενῶν, to drive one out of his senses, hence, absolutely, to confound, amaze: with accusative of the person, Luke 24:22, Acts 8:9, 8:11.
2. Intransitive in passive and middle, also in second aorist, perfect, pluperfect active, followed by ἐκ or with genitive, to stand aside from, retire from; especially τ. φρενῶν, to lose one's senses (in Euripides), hence, absolutely:
All who heard him were astounded and asked, “Isn’t this the man who wreaked havoc in Jerusalem on those who call on this name? And hasn’t he come here to take them as prisoners to the chief priests?”