In recent weeks, German officials have issued critical comments about Israel that convey Berlin’s recent frustration with its longtime ally.