Prosecutors compared Matthew Farwell’s case to the Boston Marathon bombing case, which similarly received local and national media attention.