Detectives say Jacob King shot and killed 27-year-old Jason Vitug at a home on Gregory Avenue and Cromwell Avenue late Tuesday night.
King and Vitug were with a group of long-time friends at the house when at some point, King pulled out the gun and fired it with "conscious disregard for human life," investigators said.
Police had not released a motive for the shooting but said there was no argument or disagreement before the shot was fired.
King was booked into the Fresno County Jail on murder charges.
Editor's Note: Authorities originally said the victim, Jason Vitug, was 26 years old. His age has been updated to 27 years old.