The 31-year-old, whom authorities didn’t name, had climbed a tree to try to avoid capture, then lit the tree afire and began to throw rocks at the agents as well as a helicopter called in to help track him.

Neither the agents nor the helicopter were hit by the projectiles.

The man was eventually arrested, and agents said he told them he was part of the migrant caravan that had been in the news. They said he had previous arrests in the U.S. and had been deported back in June.

A local fire department had to be called to extinguish the fire.