It means "we lost the game".
The sentence is in the passive voice, which means that the actor, the one who is doing the action, is given at end of the sentence. You can identify these kind of sentences from the usage of the "by" preposition.
By whom something was done => "beating was done by the other team"
The sentence "We were narrowly beaten by the other team." if turned into the active voice would be "The other team narrowly beat us."