The assailant tried to take his own life after attacking the victim, and both were rushed to a hospital