The five men held Tuesday in connection with the robbery and killing of Officer Peter Figoski, four of whom have been charged with murder, were watching the football game at a home in Queens when they allegedly devised a plan: ”to rob the marijuana dealer” in Brooklyn’s Cypress Hills section, the official said.

“They went right from there to Pine Street,” the official said, referring to the basement apartment targeted in the robbery. What follows is an account from a law enforcement official familiar with the details of the case.

Velez, 21 years old, parked in front of a hydrant outside 25 Pine Street. Armed with guns, Pride and Santos allegedly sought entry into the unfinished basement apartment where Jose Morales, a 25-year-old bodega worker, had a rented room. When he refused to open the door, the two men kicked it in. Tejada and Nelson Morales followed them inside.

The sound of the commotion alerted the landlord, who lives upstairs, and he called 911 to report a burglary.

Police arrived within minutes, trapping the four men inside the basement apartment. By then, Jose Morales had been pistol whipped to the ground and robbed of $770 and a watch.

Pride and Santos tried to leave from the back door but found it padlocked. As they ran towards the front door the men heard the squawks of police radios from the approaching officers, so they hid in a boiler room. Tejada and Nelson Morales were in the victim’s bedroom and kitchen when police officers arrived.

FROM HIDING TO FLEEING

Seeing the injured victim on the ground, police officers drew their guns and made their way toward him. They held Tejada, 22, and Nelson Morales, 27, at gunpoint as the men tried to explain that they heard the victim being attacked and came to his aid.

With the doorway clear, Santos and Pride slipped outside — only to be confronted by Figoski and his partner, Glenn Estrada, who were on the scene as backups.

Estrada grabbed Santos and was wrestling with him when he heard a shot. He looked up and saw Pride run past holding a gun.

At a press conference Tuesday, Police Commissioner Raymond Kelly said Figoski didn’t have a chance to draw his weapon before he was shot under the left eye. The veteran officer, a father of four daughters ages 14 to 20, died five hours later at a hospital.

Estrada chased Pride for five blocks, calmly calling out directions of the chase and a description of the suspect, Kelly said.

“Southbound on Pine… 10-85,” Estrada told his radio dispatcher, using the numerical code for officers in need of assistance. ”Male black, dressed all black, possible firearm.”

“You have him or not?” the dispatcher asked.

“Right behind him,” Estrada said.

Pride, the gunman pursued by Estrada, is a 27-year-old career criminal with five prior arrests in New York City who was wanted on a warrant for aggravated assault with intent to kill in North Carolina. He was arrested after a five block chase. A 9mm Ruger semi-automatic and mask were found nearby.

The other three men who had been inside the basement apartment left the scene, as did the Velez. As the home invasion began to unravel, the car became blocked in by arriving squad cars — so Velez walked away, leaving his mother’s car behind.

Using information from Pride, detectives arrested Tejada and Morales. But the men only knew Santos by his nickname: “Luck.”

Detectives eventually matched the nickname to Santos and found that he had used the address of a girlfriend in an accident report. Detectives arrested Santos at that address in Ozone Park.

Investigators were still questioning Velez, who obtained a lawyer Tuesday and hadn’t been charged. His lawyer did not return a call for comment.

“We hope that the quick apprehension of these suspects brings some measure of relief to the Figoski family,” Kelly said while announcing the arrests Tuesday.

Lt. John Tennant, the commanding officer of the 75th Precinct detective squad, which conducted the investigation, called his fallen comrade “a dedicated officer, very well liked, a cop’s cop.” He said the investigation into Figoski’s murder was “done with a heavy heart from losing one of my family members.”

TWO MISSED CHANCES

Figoski’s shooting became the second line-of-duty death for the New York Police Department this year, following the death of an officer who was pushed over a brownstone stairway in May. And it might have been prevented: There were two lost chances to have Pride, the alleged gunman, extradited to Greensboro, N.C., where he is wanted in connection with shooting in August.

In September, he was arrested in Brooklyn for possession of a knife; in November, police arrest him again for possession of crack cocaine with intent to sell.

On both occasions, Kelly said Tuesday, NYPD officers asked officials at the Greensboro Police Department about plans to extradite Pride — and on both occasions, Kelly said his officers were told that the warrant required that Pride only be extradited if arrested within North Carolina.

Kelly said such stipulations are done to save money and resources: the arresting police department is required to retrieve the defendant. But he said those stipulations are commonly tied to arrest warrants only for non-violent crimes.

On Nov. 7, the Greensboro Police amended their warrant to have Pride extradited from out of state, Kelly said. By that time, however, a judge in New York had turned down prosecutors’ request for $2,500 bail and released Pride on his own recognizance.

“He should not have been out on the streets,” Kelly said. “He should have been, ideally, extradited to North Carolina. But that didn’t happen.”

Officials at the Greensboro Police Department did not return a call for comment.