A man has been arrested by counter-terrorism police after rocks and an incendiary device were thrown through a window at a defence conference.