Officials from South Portland Public Schools in Maine and Rutherford County Schools in Tennessee said they were investigating intrusions by malicious hackers.