You must roll perpendicular to the beast right as its animation begins. Because this specific attack triggers a rapid, straight-line projectial trajectory, maintaining a static position or back-pedaling will ensure you get hit. Watch for its unique pre-fire wind-up cue to time your dodge perfectly.