Judge presiding over the case rules the man could not have comprehended his actions after his psychiatric evaluation revealed he suffers from psychotic episodes