Man tries to take arresting officer’s pistol