Because he was prohibited from contact with minors , authorities searched his computer , which revealed that he was chatting extensively with teen girls on MySpace and stalking a 17-year-old girl in person , law enforcement officials said .