Invariant scalar product on extended Poincaré algebra