To execute a search warrant, they do not need to, nor have the right to detain him, unless he is at the location being searched.
They knock on the door, show a warrant to whoever answers, and conduct the search. It can be calm and polite. If nobody is home, they may force entry and search.
At least when Biden’s goons raided Mar-a-Lago, they did it when Trump wasn’t there. Maybe they decided shooting a former President would be a little hard for the media to justify.