ANAHEIM, California (AP) — Corey Perry had his second hat trick of the season to help the Anaheim Ducks beat the Buffalo Sabres 4-1 on Wednesday night for their sixth straight victory in the NHL.

A moment of silence was observed out of respect for the people of Ottawa, where gunfire erupted inside the Canadian Parliament on Wednesday morning after a soldier standing guard at a war memorial was shot to death.

The Ottawa Senators' scheduled home game against Toronto was postponed as a result, and there were tributes at the remaining NHL games.

At Anaheim, Frederik Andersen made 22 saves, losing a bid for his second consecutive shutout when Tyler Ellis scored off a rebound with 5:04 to play. That ended Buffalo's scoreless streak at 192 minutes, following a 1-0 loss to Florida and 3-0 loss to Boston.

Andersen, who beat St. Louis 3-0 on Sunday night for his first NHL shutout, has been in net for each of the six wins. He has stopped 154 of 162 shots after John Gibson lost the opener in Pittsburgh.

In the other games, the Flyers beat the Penguins 5-3 at Pittsburgh and the Oilers edged the Capitals 3-2 at Edmonton.

R.J. Umberger and Matt Read scored 2 minutes apart in the third period to lift Philadelphia past the Penguins. Umberger, a Pittsburgh native, beat Marc-Andre Fleury 6:50 into the third to break a tie and Read followed with a backhander.

Though the game featured two U.S. teams, the sell-out crowd sang "O Canada" before the opening faceoff as a tribute to a Canadian soldier killed in attack in Ottawa.

The Edmonton Oilers handed Washington its first regulation loss of the season, with Ben Scrivens making 32 stops.

Justin Schultz, Ryan Nugent-Hopkins and Nikita Nikitin scored to help the Oilers win their second straight game after opening the season 0-4-1. Teddy Purcell added two assists.

John Carlson and Mike Green scored for Washington, which dropped to 3-1-2.