This is typically called a stunt. If the purpose is to attract media attention, it is a media stunt. If any attention is fine, it's a publicity stunt. If political action is desired, it's a protest stunt. In each scenario, the event's purpose is public attention.