Ward became the 12th goalie in NHL history, and the first for the Hurricanes, to score a goal.
He scored after the Devils had pulled their goalie for a sixth attacker as time was winding down. Ilya Kovalchuk tried to pass it to Adam Henrique at the point but the puck got past him, rolling all the way down the ice and into the empty New Jersey net.
Ward was credited with the goal because he was the last Hurricanes player to touch the puck.
Henrique and David Clarkson made it close for New Jersey with third-period tallies.
Johan Hedberg made 30 saves for the Devils.