Police arrested a weapons suspect early Thursday after using tear gas to end a 20-hour standoff in which a police officer and a hostage were shot.

Matthew Hastings, 28, was taken in a patrol car to the county jail and was being held on outstanding warrants. Other charges were pending, police spokeswoman Kim Kapp said.

Four SWAT teams had rotated during the long standoff. Finally, around 3:30 a.m., officers filled the home with tear gas, went inside and arrested Hastings, Kapp said. She said she didn't know if any gunshots were fired during the arrest.

The standoff started at 7:20 a.m. Wednesday, when police arrived to arrest Hastings on allegations he had jumped bail and failed to check in with his community corrections officer. Hastings had been charged in January with marijuana possession, theft of a firearm, sale or manufacture of a dangerous weapon and unlawful possession of a firearm.

Police said Hastings shot and wounded police Cpl. Chris LeBlanc and kept his landlord's son hostage for the first 12 hours of the standoff. Hastings was armed with a shotgun and a .45-caliber handgun, police said.

The hostage, Shane Runyon, 33, was shot once in the abdomen, police officer Steve Capellas said. It wasn't clear who fired the shot or when Runyon was hurt. He said Runyon was alert and talking on his way to the hospital.

LeBlanc, who joined the city police force in 1997, was shot under the arm. He was in serious condition at Southwest Washington Medical Center, with surgery to remove the bullet scheduled for Thursday.