U.S. Customs and Border Protection Officer Justin Dina delivered the baby boy last week and unwrapped the umbilical cord from around the infant's neck.
(U.S. Customs and Border Protection)

A U.S. Customs and Border Protection officer saved a newborn’s life by unwrapping the umbilical cord from around the baby's neck during delivery, the agency said on Wednesday.

Customs and Border Protection Officer Justin Dina was working in Port of Brownsville, Texas, last week when he helped deliver the baby boy.

Dina used previous paramedic training and safely unwrapped the umbilical cord around the newborn’s neck during the birth.

“A baby boy was safely delivered at the Port of Brownsville last week, thanks to the lifesaving skills of #CBP Officer Justin Dina, who used his previous training as a Paramedic to unwrap the umbilical cord from around the newborn’s neck,” the agency posted on Twitter Wednesday night.

A baby boy was safely delivered at the Port of Brownsville last week, thanks to the lifesaving skills of #CBP Officer Justin Dina, who used his previous training as a Paramedic to unwrap the umbilical cord from around the newborn’s neck. Mom and Baby are doing well! pic.twitter.com/EMsOrKNjj4

The mother and newborn, who were not identified, are doing well after the birth.

An umbilical cord wrapped around a baby’s neck, called nuchal cord, occurs in about one-third of babies when they are born. The complication usually doesn’t post as a risk, but at times can cut off normal blood flow and oxygen.

Katherine Lam is a breaking and trending news digital producer for Fox News. Follow her on Twitter at @bykatherinelam