CUMBERLAND, Maine—The Newtown school shooting in December stunned the country and prompted school districts nationwide to reassess security. In this Maine town, the school district was able to move quickly to install a new comprehensive security system.