A worker, 41, was hurt when he fell from a barge and was hit by another vessel at the United Dockyard.