The Staten Islander worked with a friend to track their target over the course of several months, according to authorities.