If he didn't know that it was loaded, then his first mistake was not to check. Cleaning it while it was loaded was his second mistake. Shooting it
into the city was his third mistake.
It actually takes quite a few lapses of judgment to accidentally shoot something.