A 24-year-old man who was wanted for kidnapping his estranged wife was taken to the hospital after he barricaded himself in an Adelphi apartment and tried to kill himself, police said.

On Saturday, Carlos Pierola allegedly took his estranged wife against her will, driving around the D.C. area with the woman in her car while trying to convince her to resolve their differences, Prince George's County police said.

After the victim was taken back to her home, she called police. Detectives obtained a warrant against Pierola on Sunday and also helped his wife obtain a protective order against him.

On Monday, the victim discovered Pierola hiding inside her home with a gun, police said. The woman was able to convince Pierola to leave, and she called detectives, who obtained a second warrant against Pierola for violating the protective order.

U.S. Marshals were trying to serve both of the arrest warrants on Pierola at his apartment in the 1800 block of Greenwich Wood Drive in Adelphi at about 10:20 p.m. Monday. But the wanted man had become aware of a police presence at his home, so he forced his way into an adjacent apartment and barricaded himself, police said.

Prince George's County police officers worked through the night to peacefully resolve the situation. At about 5:45 a.m. Tuesday, officers heard sounds that indicated that Pierola was in distress.

Police entered the apartment and took life-saving measures to save Pierola, who they said was trying to commit suicide. A police spokesman said that officers were still investigating how Pierola was attempting to take his own life.

Pierola was taken to a hospital, where he was in critical condition Tuesday afternoon, police said. No officers were injured.