The prime minister appeared at a rally in a bulletproof vest and surrounded by uniformed officers.