Court documents allege the man put cameras in multiple homes and a YMCA locker room.