Two Royal Engineers were killed and a third injured in an accident during a routine inspection of a coal ship in Northern Ireland.