In Judges 16:30 Samson commits suicide.
Samson cried, “Let me die with the Philistines! See Metzudat David there
Seemingly his supernatural strength had returned, perhaps only temporarily. But, rather than use this strength to escape and live to fight another day he chose to commit suicide. I am unaware of any source which says that Samson committed a sin (and have seen it said that he in fact performed a kiddush Hashem). I would like to know if Samson was in fact permitted to commit suicide and if so why?