Police have shot an armed man who was holding an undetermined number of passengers hostage on a bus hijacked on a bridge in Rio de Janeiro ending the standoff.