Tunisian state TV reports that 27 people have been killed after two gunmen opened fire on a beach near two hotels in the coastal resort city of Sousse.