A man was arrested after CCTV captured him allegedly using a metal pipe to smash his way through the doors of a church.