NEW YORK — Police say they’ve arrested a 14-year-old boy in connection with a fire that destroyed a vacant Lower East Side synagogue that once housed New York City’s oldest Orthodox Jewish congregation.

The NYPD said Wednesday that the boy was in custody on an arson charge.

Chief of Detectives Robert Boyce said previously that police were reviewing surveillance video showing several teens fleeing the area at the time of the blaze around 7 p.m. Sunday.

It took firefighters about two hours to bring the fire under control.

The Gothic structure was built in 1850 as a Baptist church.

It was purchased in 1885 by the Orthodox congregation Beth Hamedrash Hagodol (beyt hah-meed-RAHSH’ hah-gah-DOHL’).

The synagogue was closed in 2007.