A man claiming to be a part of the migrant caravans attacked Border Patrol agents in Yuma Friday night, according to Customs and Border Protection officials.

The Yuma sector agents discovered footprints belonging to the subject, who had illegally crossed into the country just east of the Andrade, Calif. port of entry. They tracked the suspect for nearly a mile, and eventually encountered him near a tree.

Authorities said that’s when the man climbed the tree, set it on fire, and began throwing rocks at the agents on the ground. The subject also threw rocks at a CBP Air and Marine helicopter, which was requested to help with the apprehension.

No one was struck in the attack, according to a CBP press release.

The man eventually came down from the tree, and was arrested. Authorities determined he was a 31-year-old Honduran national illegally in the U.S. He told arresting agents the he traveled toward the US on a migrant caravan in Mexico.

The Winterhaven Fire Department responded to the scene and put out the fire. The subject was transported to the Yuma Central Processing Center.

“During processing, the subject was found to have several previous arrests in Florida as well as a previous deportation from the U.S. on June 4, 2018,” authorities stated in a press release.

He will be presented for prosecution and removal proceedings.