Depends on age
If your friend is a minor, you can help but with his parents' knowledge. If your friend is an adult, he can seek help from your local mental health department. Encourage him to get professional he[p. Clinics are usually run by the county. Check your state's web site for information about available mental health services.