Thanks @Fudderin. I had done that but it was not that. It was because of one of the rear doors that was shut but still triggering alarm. Had to open and shut all the doors and windows and then used the Lexus FOB to arm and disarm the security system. That worked.