The shooter, a former House of Representatives member, confessed to the attack during a YouTube livestream.