Man said to commit attack amid psychiatric crisis, was released from institution a day prior; prosecutor says understands Israeli concern over reports suspected attacker is Muslim