A 36-year-old man has been arrested for allegedly being the person seen on video throwing a Molotov cocktail at a house of worship in Queens, one of two he’s accused of attacking Wednesday night, officials say.

Both attacks happened shortly before midnight, at Iglesia Bautista El Mesias and Kingdom Hall of Jehovah’s Witnesses, on 75th and 78th streets, respectively, according to police. In both cases, the man allegedly threw a fireball at the front door. In each case, a fire started when it hit the ground.

Surveillance footage shows one of the scenes. The man is seen standing on the sidewalk outside the church fence. He ignites something, then hurls a fireball at the church entrance.

The fireball hits the door and bounces to the ground, where it continues to flame. Firefighters extinguished both.

As of early Thursday, charges were said to be pending.