The Brevard County Courthouse in Viera was locked down after a man brandished a gun outside the building on Friday.

Advertisement Gunman dead after standoff outside Brevard courthouse Courthouse, Viera High School, Viera Charter School locked down Share Shares Copy Link Copy

A man who brandished a gun outside the Moore Justice Center in Viera was killed in a standoff with SWAT on Friday.Images: Man with gun outside courthouse prompts lockdownThe incident began at about 10:15 in the traffic circle outside the courthouse, when witnesses spotted a man waving a gun."I heard some screaming, looked over, saw an officer with a big machine gun drawn, and then I looked over to which would have been my left, the officer’s right. There was a man standing in the traffic circle waving a handgun around," said witness Tim Walters.The man slowly made his way toward the front door of the building, and people inside had to hit the floor."I was thinking I was going to get shot. I was trying to crawl away from the situation," said Denise Lavoie.Deputies contained the gunman in an area near the courthouse at 10:37 a.m. A negotiator from the Palm Bay police was speaking with the man.Chopper 2 video showed the man pacing near the courthouse, and several law enforcement officials took cover behind vehicles with their guns pointed at him. Two snipers trained guns on the suspect from the roof.Raw video SWAT team takes down gunman outside courthouseJust before 1 p.m., SWAT members took cover behind an armored truck and moved toward the man. He took off on foot and was killed in gunfire. It is not clear who fired the fatal shot."We don’t know what he is agitated over," said Brevard County Sheriff Wayne Ivey earlier in the afternoon.Ivey did not identify the man but said he had made previous threats at the courthouse. The threats didn't rise to the level of an arrest, Ivey said.According to Ivey, the man also had a bag with him.Raw video: Gunman paces outside Brevard County Courthouse"We don’t know what the other contents of the bag are. It's laying nearby where he is standing at," said Ivey.Everyone in the courthouse was moved to the back of the building during the standoff. After the shooting, the courthouse was evacuated and closed for the day.Viera High School and Viera Charter School were also placed on lockdown, and nearby residents were told to avoid the area.Jury selection for Brandon Bradley's high-profile murder case was in its fifth day inside the courthouse. Bradley is accused of killing Deputy Barbara Pill on March 6, 2012.