Rare Event Probability Learning by Normalizing Flows