The hostage situation in Sydney finally came to an end Monday after about 16 hours.

Police stormed Lindt Chocolate Cafe at Martin Place when they heard a gun go off, and then the hostages ran out.

Three people were killed, including the gunman, and some were injured, Sydney's Seven News reported. However, 15 out of the 17 hostages made it out alive, The Sydney Morning Herald reported.

The gunman is Man Haron Monis, an Iranian man with a long criminal record who was out on bail, according to Seven News and The Sydney Morning Herald. The two dead hostages are Katrina Dawson, a 38-year-old mother of three, and Tori Johnson, the 34-year-old manager of the cafe.

Witnesses said the manager made a grab for the gunman's weapon while the gunman slept, and somehow he was shot in the struggle.

More From The Basin's Classic Rock