Updated

A suspect in the deadly courthouse shootings of a judge and two other people surrendered without a struggle as law enforcement officials surrounded him, just hours after he led authorities on a massive manhunt in the Atlanta area.

Brian Nichols, 33, waved a white cloth and turned himself in Saturday, but not before police say he killed an immigration agent and held a woman hostage for hours in her own apartment.

"It's my understanding that he had told her, 'If you do what I say, I won't kill you,"' Georgia Bureau of Investigation (search) Director Vernon Keenan said.

The woman either escaped or was allowed to leave and called 911. A SWAT team gathered outside and Nichols surrendered, Gwinnett County Police Chief Charles Walters (search) said.

"He literally waved a white flag or a T-shirt and came out to our folks," Walters said.

Nichols, who remained in federal custody, set off a massive manhunt when he allegedly overpowered a court deputy Friday, took her gun and fatally shot three people, including the judge on his rape case.

His arrest came hours after the discovery of U.S. Immigration and Customs Enforcement agent David Wilhelm, who had been shot to death about 15 miles away inside a house that the agent was having built. The agent's blue pickup truck, pistol and badge were missing.

A family statement released through U.S. Immigration and Customs Enforcement (search) said Wilhelm "had a unique ability to bring out the best in people."

FBI spokesman Steve Lazarus said Nichols was a suspect in Wilhelm's shooting, and police said the truck was found at a location other than the complex where Nichols was arrested.

Prosecutors said Nichols could appear in federal court as early as Monday to face a charge of possession of a firearm by a person under indictment, the charge authorities are using to keep him in custody while they investigate the slayings.

As Nichols surrendered Saturday, a crowd cheered across the street from the apartment complex where he was arrested. They watched as a black sport utility vehicle drove away, escorted by multiple police cars.

The Atlanta area killings came less than two weeks after a Chicago federal judge's husband and mother were slain in their home, setting off a fresh round of worries about the safety of judges and others involved in the criminal justice system.

The day before the shootings, the judge and prosecutors in Nichols' case requested extra security after investigators found a shank — or homemade knife — fashioned from a doorknob in each of Nichols' shoes, prosecutor Gayle Abramson said.

Officials did not say what measures were taken to beef up security, but said deputy Cynthia Hall was alone when she escorted Nichols to his retrial. Law requires that defendants not be handcuffed as they enter the courtroom to make sure the sight of cuffs doesn't unfairly influence the jury.

"Anytime security has been asked for, we have provided it," Fulton County Sheriff Myron Freeman told reporters Saturday.

Nichols allegedly overpowered Hall, took her gun and shot her in the head. She remained in critical condition Saturday, but she was expected to survive.

Police said Nichols then went to the courtroom where his case was being heard and allegedly killed the judge presiding over the case and a court reporter. As he escaped, he fatally shot a deputy who confronted him, officials said.

Atlanta Journal-Constitution reporter Don O'Briant was getting out of his car in a nearby parking garage when Nichols allegedly pulled a gun, demanded his keys and told him to get in the trunk.

O'Briant refused and started to run.

"I figured it was better to be shot at while I was running than to just stand there and be executed," O'Briant wrote in Saturday's Atlanta Journal-Constitution.

The man pistol whipped him as he tried to escape. O'Briant fell, but got up and ran again.

"I scrambled into the street, waiting for the shots to come, but they didn't come," he wrote. "I guess it just wasn't my day to die."

Throughout Friday, police said they were looking for the reporter's green Honda Accord, but the car was found later that night in the same parking garage where Nichols stole it.

Police said Nichols attempted more hijackings, and it was suspected that he had stolen another vehicle from the same parking garage. Nichols eventually escaped the city's downtown by taking a train to north Atlanta.

Police Chief Richard Pennington said Nichols assaulted a couple near the train station late Friday, brandishing a gun and asking if they had money or a vehicle before striking one of them in the face with the gun and fleeing.

Nichols had faced a life sentence if convicted in his retrial. His earlier trial had been declared a mistrial when jurors voted for acquittal. He was accused of bursting into his ex-girlfriend's home with a loaded machine gun, binding her with duct tape and sexually assaulting her over three days. Nichols claimed the pair had consensual sex.

"My guts tell me he faced a greater chance of conviction in the second trial," his attorney, Barry Hazen, told a local television station.

At the state Capitol, just down the street from the courthouse, Speaker of the House Glenn Richardson announced Nichols' arrest Saturday on the House floor as flags flew at half-staff at a rare weekend session.

"It ended the best way this could end," said Walters, the police chief. "The public can be relieved that he is off the street."