Nidal Hasan has been executed by the US military firing squad 17 years after he killed 13 unarmed personnel at the Ford Hood army base.