Indonesia’s deputy minister for immigration affairs has been arrested after about 10 hours of questioning.