An internal affairs investigation was opened after deputies arrested a man accused of violating two protective orders.