Petrol bombs were thrown at police vehicles as officers investigated a suspect device in Northern Ireland, authorities said.