The man accused of killing three people tells prosecutors his hatred of foreigners is “pathological”.