Two undercover police officers, known to the men as "Moe" and "Gloves" or "Nadia," had been in the apartment's kitchen with the men as the explosives were assembled in empty beer bottles, according to filings by prosecutors. One of the officers accompanied one of the men to a gas station to buy fuel for the bombs, prosecutors say.