“I have reason to believe you are not in the country legally,” the agent replies.

The co-worker recording the cellphone video, George Cardenas, then asks the agents why his colleague is being arrested and what the charges are, but none are specified. He asks them repeatedly to identify themselves and tells the agents they are trespassing, but the one agent who speaks throughout the encounter says the house is a place of business, apparently because the two men are working inside.

Mr. Cardenas says that the homeowners live in the furnished basement, and points out their car.

“If you guys don’t have a warrant, you’re kind of breaking the law,” Mr. Cardenas said. “Well, you are breaking the law, basically, at this point.”

The video records a back and forth over access, and Mr. Cardenas agrees that he opened the door when he saw the agents outside but says he did not give them permission to enter. At one point, the agent says, “We don’t need to introduce ourselves by our names.”

After several minutes, the agents arrest Mr. Bolanos, removing a paintbrush from one hand and a cellphone from the other and then placing his hands behind his back and handcuffing him. He is walked to a car outside.

An ICE public affairs officer, Yasmeen Pitts O’Keefe, said later that Mr. Bolanos was released from custody pending further investigation. She said in a statement that the matter had been referred to the ICE Office of Professional Responsibility and the Department of Homeland Security’s Office of Inspector General.