A psychiatrist has detailed the maniacal state of a man accused of deliberately targeting a Jewish synagogue in an act of hate.