A man is believed to have killed himself in a rented flat under seige by police after allegedly shooting another man dead and wounding two others at a temple in Bangkok.

The suspected gunman was holed up in a flat in the Eua Arthorn building on Soi Khu Bon 27 in Khannayao district.

Bangkok police chief Pol Lt Gen Sayam Boonsom had led about 100 special operations police to the building and surrounded the flat.

The dead man had earlier gone to Wat Bueng Thong Lang in Bang Kapi district on Saturday evening. There he allegedly shot dead one man and wounded two others about 5pm.

The gunman was identified as Noparat Muhammad Aree, aka Bang San, 23. After the shooting he and his wife fled to their rented flat. Police tracked them down and surrounded the place early Sunday morning.

At 2.14am police heard two gunshots. The gunman’s wife then rushed out of the flat in tears and told police her husband had shot himself. The man was taken to Synphaet Ramintra Hospital, where he was pronounced dead at 3.45am.

Pol Lt Gen Sayam said the woman's husband had a personal conflict with the man he shot dead. The investigation was continuing.