Two Queensland police officers have been injured after they were allegedly attacked with a needle inside a watch house.