The teams will play again Saturday in Ottawa.
Reilly Smith scored twice, boosting the Bruins to their third straight win and their eighth in 10 contests.
Boston had only a 1-0 lead heading into the third period, but Krejci gave the Bruins some breathing room by scoring just 38 seconds into the stanza.
All five goals were surrendered by Robin Lehner on 42 shots. It was Ottawa's fourth loss in five games.
Ray Liotta sues skin care company over use of likeness
Boston schools pull out free condoms over wrapping complaints