Police have said they are treating an incident in County Tyrone on Friday night as the attempted murder of a police officer.
A pipe bomb was found close to the officer's home in the Coolnagard area of Omagh on Saturday afternoon.
It followed an incident on Friday night when an off-duty police officer fired a number of shots.
Police have said the two incidents were linked. Nobody was injured in either incident.
However, Superintendent Alwyn Barton said someone could have been killed by the bomb.
He said it was very fortunate that the device did not explode and that no-one was killed or seriously injured.
Police are appealing for anyone who saw anyone acting suspiciously in the Coolnagard or Kevlin Road area between 20:00 GMT and midnight on Friday to contact them.