(CNN) The 8-year-old Guatemalan migrant who died on Christmas Eve in the custody of US Customs and Border Protection had the flu, according to the New Mexico Office of the Medical Investigator.

An official cause of death for Felipe Gómez Alonzo has not been determined.

The boy, who was detained with his father, died shortly before midnight Monday at Gerald Champion Regional Medical Center in Alamogordo, New Mexico, about 90 miles north of the border crossing in El Paso, Texas.

His father, Agustín Gómez Pérez, was released from CBP custody on his own recognizance Thursday, US Immigration and Customs Enforcement spokeswoman Liz Johnson said.

An autopsy showed Felipe tested positive for Influenza B, the medical examiner's office said Friday.

Influenza B is among the viruses that cause seasonal epidemics most winters in the United States, according to the Centers for Disease Control and Prevention.

Felipe was the second Guatemalan child to die in US border patrol custody this month.

On December 8, Jakelin Caal Maquin , 7, died in a hospital two days after she was taken to a Border Patrol station.

President Donald Trump in a pair of tweets Saturday blamed Democrats and their immigration policies for the children's deaths. Trump is at an impasse with Democrats over his demands for a border wall as a partial government shutdown heads into a second week.

"Any deaths of children or others at the Border are strictly the fault of the Democrats and their pathetic immigration policies that allow people to make the long trek thinking they can enter our country illegally," Trump wrote. "They can't. If we had a Wall, they wouldn't even try!"

Trump said that the two children who died "were very sick."

Any deaths of children or others at the Border are strictly the fault of the Democrats and their pathetic immigration policies that allow people to make the long trek thinking they can enter our country illegally. They can't. If we had a Wall, they wouldn't even try! The two..... — Donald J. Trump (@realDonaldTrump) December 29, 2018

...children in question were very sick before they were given over to Border Patrol. The father of the young girl said it was not their fault, he hadn't given her water in days. Border Patrol needs the Wall and it will all end. They are working so hard & getting so little credit! — Donald J. Trump (@realDonaldTrump) December 29, 2018

Felipe's half sister, Catarina Alonzo, 21, said the boy was healthy when he set out with his father for the United States in the middle of this month. He had vowed to work hard to send money to his mother in their small village in the highlands of western Guatemala, near the border with Mexico.

"This is not what we wanted for him," she told CNN in a phone interview Friday.

Alonzo described Felipe as a playful and respectful boy who liked soccer and eating fish from a lake near the family's thatched-roof home. She said the family had received a phone call from a Guatemalan consular representative but government officials have not visited or offered assistance.

Felipe's father had planned the journey north for about two weeks, Alonzo said. She said she believes they rode buses to the US border. In addition to working, she said, Felipe was also eager to study in the United States.

On December 18, Felipe and his father were apprehended for illegal entry about 3 miles west of the Paso del Norte port of entry in El Paso.

On Monday, the boy was taken to the hospital after a border agent noticed signs of illness, and the medical staff first diagnosed him with a common cold and later detected a fever.

"The child was held for an additional 90 minutes for observation and then released from the hospital mid-afternoon on December 24 with prescriptions for amoxicillin and Ibuprofen," CBP said in a statement. Amoxicillin is a commonly prescribed antibiotic.

On Monday evening, the boy began vomiting and was taken back to the hospital for evaluation. He died hours later, the CBP said.

The Guatemalan Consulate in Phoenix said in a statement that Felipe's father was able to see his son's body Friday at the medical investigator's office in Albuquerque, New Mexico, and said goodbye.

Felipe's body will be returned to Guatemala following the conclusion of a forensic evaluation, the consulate said.

The father has been in the care of the Guatemalan Consulate since Friday morning, it added, and he's being given assistance as his migration case goes forward.

Department of Homeland Security Secretary Kirstjen Nielsen was to visit Yuma, Arizona, on Saturday after going to El Paso a day earlier, a DHS official said.

Nielsen's trips to the US cities near the Mexican border are intended "to see firsthand the medical screenings and conditions at Border Patrol stations."

El Paso Mayor Dee Margo met with Nielsen on Friday.

"I appreciate Secretary Nielsen taking the time to meet with me to discuss the El Paso region, and our immigration needs on the border," Margo said in a statement. "Our federal officials should visit the border when making decisions about our immigration system, and Secretary Nielsen's visit is most welcome."