The gunman opened fire, killing two and injuring a third, before turning the weapon on himself.