Where a breach of the peace or other offense has been committed, and the offender endeavors to escape, the offender may be arrested by virtue of an oral order of any magistrate, or without the order, if no magistrate is present.