The attack has sparked much soul-searching in a country where political violence is rare but where police have documented a steady rise in threats towards elected officials.