NEW YORK -- Officer Rafael Ramos sat in the driver's seat of the patrol car. Officer Wenjian Liu was at his side.
The two cops weren't at their usual precinct. Normally, the pair were assigned to downtown Brooklyn, but they were working a "critical response" detail in an area in the borough with higher crime, police said.
That's where they were slain, ambushed Saturday by a gunman police identified as Ismaaiyl Brinsley.
Brinsley walked to the passenger side of the patrol car and took a shooting stance, witnesses told police. He fired several times, striking both officers in the head, Police Commissioner William Bratton said.
Ramos and Liu were "shot and killed with no warning, no provocation. They were, quite simply, assassinated."
At a nearby subway station, Brinsley was found dead. He had shot himself, authorities said.
The thin blue line
The families of the fallen officers rushed to Woodhull Medical Center on Saturday, as dozens of officers gathered.
Ramos had just turned 40; Liu had been married two months ago.
Both had dreamed of being police officers, Bratton said.
"One of the unfortunate realities of policing is that you put that blue uniform on and you become part of the thin blue line between us and anarchy," Bratton said.
Mayor Bill de Blasio and Bratton met with the families of the victims. De Blasio said that Ramos' 13-year-old son couldn't comprehend what had happened to his father.
It appeared that the boy, Jaden, had taken to Facebook to express his pain.
"This is the worst day of my life. Today I had to say bye to my father. He was (there) for me everyday of my life, he was the best father I could ask for. It's horrible that someone gets shot dead just for being a police officer. Everyone says they hate cops but they are the people that they call for help."
"When a police officer is murdered, it tears at the foundation of our society," the mayor said. "It is an attack on the very concept of decency."
President Barack Obama condemned the shooting.
"Two brave men won't be going home to their loved ones tonight, and for that, there is no justification," he said in a statement.
"The officers who serve and protect our communities risk their own safety for ours every single day -- and they deserve our respect and gratitude every single day."
The suspect
Brinsley arrived in New York from Baltimore, but had a home in the Atlanta suburb of Union City, Georgia. Bratton said that Brinsley was somehow connected to Brooklyn, but would not discuss that information.
Bratton said there's is no indication at this time that Brinsley was connected to any terrorist group or organized entity.
Police were investigating posts Brinsley allegedly made on social media.
There was at least one post threatening to kill police on an Instagram account in his name, connected to the poster's anger at the high-profile deaths of African-Americans Michael Brown and Eric Garner. Police officers killed both men.
The account also displayed a handgun and a message that said it might be the poster's last message.
Bratton said that the suspect had earlier shot and seriously wounded a woman in Baltimore believed to be his ex-girlfriend.
Brinsley also had a lengthy arrest record in Georgia, mostly involving charges of shoplifting and illegal weapons possession, records show. He was also charged with property damage and obstructing a police officer.
He pleaded guilty to many of the charges, according to police and court records.
Baltimore police received information that Brinsley had made threatening comments about officers, and sent a warning to police in New York, Bratton said.
That message came almost the same time that the ambush happened.
U.S. Attorney General Eric Holder called the attack "an unspeakable act of barbarism."
De Blasio also called the shootings an "assassination."
"It is an attack on all of us," he said. "It is an attack on everything we hold dear."
"This can't happen"
The shooting shocked residents in the neighborhood.
"This can't happen. If you mad at somebody, be mad at the person that you are mad at. Now, we have two families that (are) missing somebody for the holidays," Shaniqua Pervis told CNN affiliate WABC.
"Where is your humanity? I know it's a war going on and shoutout to Eric Garner's family and everybody else who lost somebody, but you're not at his house, on his lawn. This is two (officers). You don't even know if (they were) good or bad. I don't condone this, and I'm not with it."
The woman was referring to the controversial July death of the unarmed black man after New York police officers on Staten Island wrestled him to the ground, with one of the officers wrapping his arm around Garner's neck in a chokehold.
A grand jury's decision not to indict the police officer in the Garner case, as well as a separate grand jury's refusal to indict an officer in a controversial police shooting of unarmed teen Michael Brown in Ferguson, Missouri, led to nationwide protests against the police.
Brown's family condemned Saturday's slayings.
"We reject any kind of violence directed toward members of law enforcement. It cannot be tolerated. We must work together to bring peace to our communities," they said in a statement.
"Our thoughts and prayers go out to the officers' families during this incredibly difficult time."
In a statement, activist the Rev. Al Sharpton said the Garner family was outraged by news of the police officers' slayings.
"Any use of the names of Eric Garner and Michael Brown, in connection with any violence or killing of police, is reprehensible and against the pursuit of justice in both cases," the statement said. "We have stressed at every rally and march that anyone engaged in any violence is an enemy to the pursuit of justice for Eric Garner and Michael Brown."
Tensions between the community and police have heightened around the country since the deaths of Brown and Garner.
"This could not have come at a worse time," City Councilman Robert Cornegy told CNN affiliate WPIX.
So far, police have not commented on the motive for the Brooklyn shootings, except to say the officers were not engaging the shooter in any way when they were shot.