Do you have the "arrows flying" graphic? You will need that before anything, a 3 frame character sheet will do, then you create an event.
Page 1 is the arrows "shooting" set the graphic as the arrows animation, on stepping so they animate on their own, set it to below characters so players can try to "pass" on it, and set the event to activate on "player touch", then you add a player move route 1 step backwards + damage effect, maybe a flash red screen/player.
Page 2 will be empty, activated by a "trap off" or whatever name you want to call the off switch, you of course set this switch to "on" on a lever/button/plate/etc you set somewhere else, even as a puzzle "reward", up to you on that part, so that when that lever-thing is activated, it offs the arrow trap.
copy the "arrow trap" event for as many squares as the hallway is wide, or be lazy and make a thin hallway :3
The complicated part of it all is getting the "arrows shooting" graphics, that one will have to be custom made.