SAN FRANCISCO — A Yahoo Inc. executive sued for sexual harassment last week has fired back in a countersuit, calling the harassment claims “outrageously false.”

Former Yahoo software engineer Nan Shi claimed her boss pressured her to have sex and then retaliated with poor performance reviews, ultimately leading to Shi’s termination, when Shi broke off the relationship.