A New York City police officer who had arrested a photographer working for The New York Times has been indicted on three felony counts and five misdemeanors accusing him of fabricating the reasons for the arrest, the Bronx district attorney announced on Monday.

The officer, Michael Ackermann, 30, claimed that the photographer interfered with an arrest last year of a teenage girl by repeatedly discharging his camera’s flash in Officer Ackermann’s face. But the officer’s account unraveled after the office of Robert T. Johnson, the Bronx district attorney, examined photographic evidence and determined that the photographer, Robert Stolarik, did not use a flash and did not have one on his camera at the time. Prosecutors added that no other police officers or civilian witnesses reported seeing a flash.

Officer Ackermann, 30, was arraigned at State Supreme Court in the Bronx. He was charged with several counts related to filing false records and official misconduct. If convicted on the top count, he faces up to seven years in prison and could lose his job. He was released without bail pending the outcome of the case.

Calls to the lawyer who represented Officer Ackermann in court were not returned, and the Police Department did not respond to a request for comment.