PARKER, Fla. -- Authorities in Florida’s panhandle say a man has confessed to killing his 2-month-old son and leaving the boy’s body in the woods.

Parker Police Chief Dennes Hutto said the child’s disappearance might have gone unsolved if 27-year-old Gene Anthony Quinones-Rivera had not walked into the police department Wednesday and told officers that he killed Gediaelamir Rivera in June 2015. Police say the child was never reported missing, reports CBS affiliate WECP.

“I’m glad he did come forward,” Hutto told reporters Thursday. “If he hadn’t, no one would have ever known what happened to this infant.”

Get Breaking News Delivered to Your Inbox

The News Herald reports that investigators have found the partial remains of a child in a remote part of Bay County described by Quinones-Rivera.

Quinones-Rivera of Guanica, Puerto Rico, was charged with second-degree murder. Court records show he was held on a $150,000 bond.

In an interview at the jail, Quinones-Rivera told the newspaper he had been smoking marijuana and was angry when he stuffed a sock into his son’s mouth to stop him from crying. He said he had previously gagged his son in the same manner and taped his arms to his sides.

“My son was crying, and I was angry with him for that,” he said. “That’s the only reason I was angry with my son.”

Hours later, he found that the boy had stopped breathing. He tried to revive the child with CPR and cold bath water, but Gediaelamir didn’t respond.

Quinones-Rivera said he put the boy’s body in a trash bag and left it in a wooded area without notifying authorities.

He said he came forward to confess after a religious conversion.

“Right now I don’t have fear, but I know I needed to pay for that. I can’t lie no more. I need to be free,” Quinones-Rivera said.

Police said it’s not yet clear whether the child’s mother was involved in his death.