Security forces temporarily blocked the entrance to Nigeria’s parliament on Tuesday, preventing lawmakers and others from entering for up to an hour, witnesses said.