CARACAS, Venezuela — President Nicolás Maduro was chased at a routine political event by a crowd of angry protesters banging on pots and yelling that they were hungry, just days after thousands of Venezuelans took to the streets to call for his ouster, local news media reported on Saturday.

Scenes from the confrontation late Friday, which also appeared in videos uploaded to social media, captured the attention of Venezuelans, many of whom blame the unpopular president for the country’s food shortages.

In one video, Mr. Maduro tries to calm the pot-bangers by walking among them, only to be surrounded as the furious crowd yells obscenities.

“What is this?” an astounded voice behind the camera asks in one of the video clips.

Mr. Maduro had traveled from the capital, Caracas, to Margarita Island off Venezuela’s northern coast to inaugurate a number of new public housing units and give a televised address.