Robbery suspect in critical condition after being shot by officer