Two protesters taking part in demonstrations roiling Iran were killed overnight as the government partly blocked access to a messaging app used by activists.