Troops repel attack on Nigeria oil terminal