&gt;  after getting caught

They were not caught. They were still on their own vessel. Why take the pill when you can actually put up a fight? If you are going down, might as well take some of the enemy down. This is shady as fuck. 

Edit: http://indianexpress.com/article/india/india-others/little-evidence-of-terror-link-may-have-been-petty-smugglers/