FREMONT -- A man who turned himself in to police Thursday evening, claiming he shot and killed a family member two hours earlier, may have been acting in self-defense, police said Friday.

Detectives are continuing to investigate the shooting, which was reported at 5:25 p.m. Thursday in the 39500 block of Pardee Court. Officers arriving on the scene found the victim, a 48-year-old man, dead of at least one gunshot wound.

The suspected gunman had already left the house by the time police arrived. Though police began a search for him, they could not find the suspect.

At about 7:20 p.m., though, the man walked into Fremont police headquarters, identified himself and surrendered the weapon he told police was used in the shooting, police said.

Investigators interviewed him and released him Thursday night, according to Det. Bill Veteran.

Police would not identify either the victim or the shooter, or disclose the nature of the relationship between the victim and the gunman.

Police did say both men lived at the home.

The shooting is still under investigation, Veteran said, and detectives will consult with the Alameda County District Attorney's Office as they continue to evaluate the case.

Contact Daniel M. Jimenez at djimenez@bayareanewsgroup.com. Follow him at Twitter.com/DMJreports.