YARMOUTH, Maine—AT&T will phase out its 2G networks by 2017, setting a long-anticipated timeline for the “sunset” of the technology and giving the alarm industry a target date to upgrade cellular equipment.