New York City FC's Thomas McNamara restored some hope for his side with an emphatic strike that flew into the top corner against New York Red Bulls.