It is extremely difficult for us to discern whether an apparent suicide acted with completely free will. Usually they are under stress, and they may be in some other condition (such as being a teenager, being under the influence of some substance, having a mental or physical illness) that affects their free will.
Also, a lot of people who survived an attempt have expressed that the minute they jumped off the bridge or whatever, they wanted to take it back. A friend of mine killed himself 2 years ago by throwing himself in a river (he announced to his family he was going to go do this and then went and did it) and was last seen yelling for help but the rescue attempts were not successful. Even back in a previous century when most priests and Catholics weren’t so enlightened about suicide, St. John Vianney told a woman whose husband had died by suicide that her husband had actually repented at the last moment before death and was saved. (He had a special charism to know these things.)
It’s also really hard to tell sometimes when a suicide attempt was serious and when it was just a cry for help that went too far, or something not intended seriously. When I was young I was stressed out and faking hanging myself in front of somebody and I passed out and almost hung myself for real. I came to on the floor because the chain broke, fortunately I was not injured, just real shook up. The other person thought I was play acting and hadn’t lifted a finger to help me or gotten up from where they were sitting. It only takes a minute or two to make a fatal mistake, and that no doubt would have been reported as “College student commits suicide in dorm room” but I didn’t intend to actually die.
So, overall, it’s better to trust in God’s mercy and hope for the best and pray for the person.