Man dies in apparent suicide during SWAT standoff