Complex sentence: The rowdies mistakenly think it as a police firing come out and start firing which triggers the real police to come to the spot and kill Devanathan and the criminals in the shootout.
Split into simpler sentences: The rowdies mistakenly think it as a police firing come out and start firing. Finally, the police kill Devanathan and the criminals in the shootout.