President Lai Ching-te has paid his respects to two firefighters who died trying to save people from a burning building in Hsinchu.