The inquiry will examine the lead up to the attack and the wider issue of extremist violence.