Detroit Red Wings beat Philadelphia Flyers 6-4