BROOKLYN - A female New York City corrections officer has been arrested for arson after a two-alarm fire in Bed-Stuy that injured several people.

According to fire officials, 43-year-old Yvette Randolph is accused of setting the blaze Thursday morning that sent flames through an apartment building at 375 Chauncey St.

News 12 obtained surveillance video from a bodega near the fire that may have caught the suspect in the act. It shows a woman dressed in what appears to be a uniform going into the building for about three minutes. She then walks out toward Howard Avenue and within minutes, smoke is seen billowing out of the brownstone.

Police sources say they believe Randolph started the fire to get back at an ex-boyfriend.

A total of 12 people were injured, including some seriously, but they are all expected to survive.