The incident happened outside the village of Castledawson in Co Londonderry on Wednesday afternoon.