Two civilians also were shot and the suspect was shot and killed later by police, Sheriff Tony Spurlock said.Deputy Zackari Parrish, 29, was killed. The four injured officers are in stable condition, Spurlock told reporters. Spurlock said the suspect, who was not identified, had barricaded himself in a bedroom and had been talking with officers before he suddenly opened fire with a rifle, hitting four deputies in the apartment."There were well over 100 rounds fired … from the suspect," Spurlock said.The suspect's roommate, who was home, was not wounded. The two injured citizens apparently were not in the apartment. The wounded deputies crawled to safety as other law enforcement agencies responded to the shots fired call.A Castle Rock police officer was also hit, but it wasn't clear where he was when he was shot.The deputies were wearing ballistic vests but were shot in areas the vest didn't cover, Spurlock said. Spurlock said the suspect has had previous contact with law enforcement "throughout the metro area," but has no criminal history. The incident began after 5 a.m. at the Copper Canyon Apartments in Highlands Ranch, about 20 miles south of Denver.It was the second time deputies had gone to the apartment Sunday. There was a noise complaint call about 1:30 a.m., but when deputies arrived there was no noise, Spurlock said. The second call came in as a domestic disturbance, and deputies entered the apartment. During discussions with the suspect and his male roommate about the noise, the shooter slipped into a bedroom.At some point, the suspect fired a quick succession of shots. Parrish suffered mortal wounds, Spurlock said he was told by a doctor at the emergency room."They all went down within almost seconds of each other so it was more of an ambush type of attack on our officers," Spurlock said. The suspect was killed almost two hours later during a shootout with a tactical team, the sheriff said. A motorcade accompanied the fallen officer from a hospital in nearby Littleton. Three patients with non-critical injuries were treated and released from Sky Ridge Medical Center in Lone Tree, Colorado, hospital spokeswoman Linda Watson said. "Any citizens in the affected area are instructed to shelter in place, avoid windows and stay away from exterior walls," the sheriff's office tweeted. An emergency shelter was set up for those displaced by the massive police response. Steven Silknitter, a resident of the Copper Canyon apartment complex, said he rushed home to check on his fiancee after hearing of the shooting and arrived to hear a "barrage of gunfire exchange."The area was blocked off, and Silknitter said he saw at least 20 police vehicles. "I was deathly afraid that I was going to go home and she'd be gone. … I didn't know what I was going to find," he told CNN affiliate KMGH."It's the last thing I would have thought of at my complex," he said. "It's like something out of a movie."President Trump tweeted his "deepest condolences to the victims of the terrible shooting in Douglas County … and their families."The four injured officers are Mike Doyle, 28, Taylor Davis, 30, Jeffrey Pelle, 32, of the Douglas County Sheriff's Department, and Tom O'Donnell, 41, a police officer with the Castle Rock Police Department. Parrish is survived by his wife and two young children. He joined the sheriff's department about seven months ago, after two years with the Castle Rock Police Department.Correction: A previous version of this article gave the incorrect age for Officer Tom O'Donnell. He is 41.
CNN's Sheena Jones and Theresa Waldrop contributed to this report.