Man shot dead by security guard after being mistaken for a robber