Technology will monitor activity such as smuggling and illegal migration, as well as provide military intelligence, officials say after countries sign agreement