According to court filings, he had previously been in a relationship with the 17-year-old victim's girlfriend.