A former FBI agent from Alexandria was sentenced Tuesday to four years of probation for his part in acquiring confidential information while an agent and passing it along to a friend, prosecutors said.

Ivan Stantchev, 43, was sentenced on a misdemeanor in federal court in Newark, N.J. He had previously pleaded guilty to causing another to exceed authorized access to an FBI computer when he contacted a colleague at the FBI to help him get information for his friend, prosecutors said.

The information the friend ultimately received — and then passed along to others in New Jersey, prosecutors say-- included the existence of an ongoing FBI investigation in Newark, and the existence of an undercover “law enforcement” operation in the city, the name of the FBI’s operation and the federal offenses being investigated.

The friend had asked Stantchev to check four telephone numbers and find out about the people linked to them, according to federal court records.

Stantchev contacted an FBI colleague in the New York area in June 2011 with the phone numbers and, by the end of the month, got back an e-mail from the colleague through the FBI system with information that Stantchev then gave to his friend, court filings show.

Barbara Woodruff, an FBI spokeswoman in Newark, has previously said the breach did not compromise any investigation. Woodruff has said Stantchev joined the FBI in 2005 and had worked most recently in Newark after assignments at FBI headquarters and in New York.

David Laufman of the District, Stantchev’s attorney, said at the time of the guilty plea that the information his client relayed “was in no way classified and did not involve national security.”