A man has been arrested after allegedly setting a police car alight.