A teenage boy is in custody, accused of threatening a newly-opened mosque with a reference to a notorious terrorist attack during the holy month of Ramadan.