DUBAI (AFP) - A Dubai court has sentenced an Emirati to death after convicting him of raping and then murdering a four-year-old Pakistani boy in a mosque on the first day of Eidul Azha, newspapers said on Thursday. The sentence was handed down on Wednesday by lower court judge Fahmi Fahmi amid tight security. The victims father and brother were in court to hear the verdict, the Khaleej Times reported. The sentence is not final as it can be challenged before the appeals and supreme courts. The condemned man, 30, had confessed during the trial to raping and murdering the boy in a mosque as worshippers offered prayers nearby on the first day of Eidul Azha on November 27. The boy was found dead in the toilet of the mosque, according to a statement last month by the Dubai prosecutor. According to the prosecution, the culprit, a fisherman by profession, said he lured the boy to the toilet by saying he would give him a cash present to mark the Eid. As the boy tried to scream after being sexually assaulted, the attacker muzzled him and banged his head on the floor, killing him. Although the United Arab Emirates has the death penalty on its statute book, executions are rarely carried out in the Gulf country.